diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ddf12da..5c65479 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,15 +34,16 @@ jobs: run: | mv target/${{ matrix.target.name }}/ci-release/${{ matrix.target.extension }} . zstd --ultra -22 -o -${{ matrix.target.name }}.zst ${{ matrix.target.extension }} - - name: Collect artifact + - name: Collect artifacts run: | mkdir -p artifacts mv -${{ matrix.target.name }}.zst artifacts - - name: Upload artifact + - name: Upload artifacts uses: actions/upload-artifact@v4.0.0 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 diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index bd2d262..91d2e64 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -32,15 +32,16 @@ jobs: run: | mv target/${{ matrix.target.name }}/ci-release/${{ matrix.target.extension }} . zstd --ultra -22 -o -${{ matrix.target.name }}.zst ${{ matrix.target.extension }} - - name: Collect artifact + - name: Collect artifacts run: | mkdir -p artifacts mv -${{ matrix.target.name }}.zst artifacts - - name: Upload artifact + - name: Upload artifacts uses: actions/upload-artifact@v4.0.0 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 diff --git a/Cargo.toml b/Cargo.toml index 3349579..68d6d85 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] authors = ["Xavier Lau "] -# build = "build.rs" +build = "build.rs" description = "" edition = "2021" homepage = "https://hack.ink/" @@ -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" } diff --git a/src/lib.rs b/src/lib.rs deleted file mode 100644 index e69de29..0000000 diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..a56472d --- /dev/null +++ b/src/main.rs @@ -0,0 +1,9 @@ +// crates.io +use anyhow::Result; + +fn main() -> Result<()> { + color_eyre::install().unwrap(); + tracing_subscriber::fmt::init(); + + Ok(()) +}