From 80491218c514008722d04eb7c858bd39cb0599c1 Mon Sep 17 00:00:00 2001 From: mraszyk <31483726+mraszyk@users.noreply.github.com> Date: Mon, 16 Sep 2024 21:26:31 +0200 Subject: [PATCH] chore(rust/basic_bitcoin): release action (#976) * chore(rust/basic_bitcoin): release action * gzip * fix path * paths --- .../rust-basic-bitcoin-example-release.yml | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/rust-basic-bitcoin-example-release.yml diff --git a/.github/workflows/rust-basic-bitcoin-example-release.yml b/.github/workflows/rust-basic-bitcoin-example-release.yml new file mode 100644 index 000000000..4d534acb3 --- /dev/null +++ b/.github/workflows/rust-basic-bitcoin-example-release.yml @@ -0,0 +1,32 @@ +name: rust-basic-bitcoin-release +on: + push: + branches: + - master + pull_request: + paths: + - rust/basic_bitcoin/** + - .github/workflows/provision-linux.sh + - .github/workflows/rust-basic-bitcoin-example-release.yml + - .ic-commit +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +jobs: + rust-basic-bitcoin-linux: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v1 + - name: Provision Linux + run: bash .github/workflows/provision-linux.sh + - name: Rust Basic Bitcoin Linux + run: | + pushd rust/basic_bitcoin + bash src/basic_bitcoin/build.sh + cp target/wasm32-unknown-unknown/release/basic_bitcoin.wasm basic_bitcoin.wasm + gzip -9 basic_bitcoin.wasm + - uses: actions/upload-artifact@v4 + with: + name: "basic_bitcoin.wasm.gz" + path: "rust/basic_bitcoin/basic_bitcoin.wasm.gz" + compression-level: 0