diff --git a/.github/workflows/release-node-bindings.yml b/.github/workflows/release-node-bindings.yml new file mode 100644 index 000000000..695349ae2 --- /dev/null +++ b/.github/workflows/release-node-bindings.yml @@ -0,0 +1,86 @@ +name: Release Node Bindings + +on: + push: + +jobs: + build-linux: + runs-on: warp-ubuntu-latest-x64-4x + strategy: + fail-fast: false + matrix: + target: [ + x86_64-unknown-linux-gnu, + aarch64-unknown-linux-gnu, + # x86_64-unknown-linux-musl, + aarch64-unknown-linux-musl, + ] + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: "Cache" + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + ./target/${{ matrix.target }} + key: ${{ matrix.target }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }} + - name: Configure aarch64 toolchain + if: startsWith(matrix.target, 'aarch64') + run: | + sudo apt-get install -qq crossbuild-essential-arm64 crossbuild-essential-armhf + cat >>~/.cargo/config <