-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b6addf
commit 5a62859
Showing
5 changed files
with
26 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,15 +34,16 @@ jobs: | |
run: | | ||
mv target/${{ matrix.target.name }}/ci-release/<NAME>${{ matrix.target.extension }} . | ||
zstd --ultra -22 -o <NAME>-${{ matrix.target.name }}.zst <NAME>${{ matrix.target.extension }} | ||
- name: Collect artifact | ||
- name: Collect artifacts | ||
run: | | ||
mkdir -p artifacts | ||
mv <NAME>-${{ matrix.target.name }}.zst artifacts | ||
- name: Upload artifact | ||
- name: Upload artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: artifacts | ||
path: artifacts | ||
retention-days: 1 | ||
|
||
release: | ||
name: Release | ||
|
@@ -99,14 +100,3 @@ jobs: | |
run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
- name: Publish | ||
run: .maintain/release.sh | ||
|
||
clean-artifacts: | ||
name: Clean artifacts | ||
if: always() | ||
needs: [release] | ||
steps: | ||
- name: Clean artifacts | ||
uses: geekyeggo/delete-artifact@v2 | ||
with: | ||
name: artifacts | ||
runs-on: ubuntu-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,15 +32,16 @@ jobs: | |
run: | | ||
mv target/${{ matrix.target.name }}/ci-release/<NAME>${{ matrix.target.extension }} . | ||
zstd --ultra -22 -o <NAME>-${{ matrix.target.name }}.zst <NAME>${{ matrix.target.extension }} | ||
- name: Collect artifact | ||
- name: Collect artifacts | ||
run: | | ||
mkdir -p artifacts | ||
mv <NAME>-${{ matrix.target.name }}.zst artifacts | ||
- name: Upload artifact | ||
- name: Upload artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: artifacts | ||
path: artifacts | ||
retention-days: 1 | ||
|
||
staging: | ||
name: Staging | ||
|
@@ -97,14 +98,3 @@ jobs: | |
# run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
# - name: Publish | ||
# run: .maintain/release.sh | ||
|
||
clean-artifacts: | ||
name: Clean artifacts | ||
if: always() | ||
needs: [staging] | ||
steps: | ||
- name: Clean artifacts | ||
uses: geekyeggo/delete-artifact@v2 | ||
with: | ||
name: artifacts | ||
runs-on: ubuntu-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
authors = ["Xavier Lau <[email protected]>"] | ||
# build = "build.rs" | ||
build = "build.rs" | ||
description = "<DESCRIPTION>" | ||
edition = "2021" | ||
homepage = "https://hack.ink/<NAME>" | ||
|
@@ -18,6 +18,13 @@ inherits = "dev" | |
inherits = "release" | ||
lto = true | ||
|
||
# [build-dependencies] | ||
# # crates.io | ||
# vergen = { version = "8.2", features = ["build", "cargo", "git", "gitcl"] } | ||
[build-dependencies] | ||
# crates.io | ||
vergen = { version = "8.2", features = ["build", "cargo", "git", "gitcl"] } | ||
|
||
[dependencies] | ||
# crates.io | ||
anyhow = { version = "1.0" } | ||
color-eyre = { version = "0.6" } | ||
tracing = { version = "0.1" } | ||
tracing-subscriber = { version = "0.3" } |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// crates.io | ||
use anyhow::Result; | ||
|
||
fn main() -> Result<()> { | ||
color_eyre::install().unwrap(); | ||
tracing_subscriber::fmt::init(); | ||
|
||
Ok(()) | ||
} |