From 183f296a9bf1fd7051af099e3c0ddab5cbecbfd3 Mon Sep 17 00:00:00 2001 From: Larry Dewey Date: Tue, 4 Feb 2025 14:52:37 -0600 Subject: [PATCH] Adding build script Signed-off-by: Larry Dewey --- .github/workflows/release_binary.yml | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/release_binary.yml diff --git a/.github/workflows/release_binary.yml b/.github/workflows/release_binary.yml new file mode 100644 index 00000000..09180959 --- /dev/null +++ b/.github/workflows/release_binary.yml @@ -0,0 +1,32 @@ +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' + +name: release +jobs: + release: + name: Create Release + runs-on: ubuntu-latest + steps: + - run: sudo apt-get install -y asciidoctor musl-tools + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: x86_64-unknown-linux-musl + override: true + - uses: actions-rs/cargo@v1 + with: + command: build + args: --release --target x86_64-unknown-linux-musl + - uses: actions-rs/cargo@v1 + with: + command: test + args: --release --target x86_64-unknown-linux-musl + - uses: softprops/action-gh-release@v1 + with: + files: target/x86_64-unknown-linux-musl/release/snpguest + generate_release_notes: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}