diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 633ae52..056d059 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,10 @@ jobs: contents: write steps: - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + - uses: mbrobbel/rustfmt-check@master + with: + token: ${{ secrets.GITHUB_TOKEN }} - name: Build-musl uses: gmiam/rust-musl-action@master with: @@ -27,11 +31,15 @@ jobs: name: Upload artifact with: name: ${{ env.BINARY_NAME }} - path: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }}* -# - name: Strip binary -# run: strip target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }} - - uses: ncipollo/release-action@v1 + path: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }} + - name: Compress binaries + uses: svenstaro/upx-action@v2 with: - artifacts: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }}* + files: | + target/x86_64-unknown-linux-musl/release/* + - uses: ncipollo/release-action@v1 + name: Update release page + with: + artifacts: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }} allowUpdates: true body: Static build for x86_64-linux using MUSL diff --git a/Cargo.lock b/Cargo.lock index 6770d9a..c95da9d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1043,7 +1043,7 @@ checksum = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78" [[package]] name = "rexec" -version = "1.0.0" +version = "1.0.1" dependencies = [ "brace-expand", "clap 4.3.4",