diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1de662a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +jobs: + release: + name: Release - ${{ matrix.platform.os-name }} + strategy: + matrix: + platform: + - os-name: Linux-x86_64 + runs-on: ubuntu-20.04 + target: x86_64-unknown-linux-musl + - os-name: Linux-arm + runs-on: ubuntu-20.04 + target: arm-unknown-linux-musleabi + - os-name: Linux-i686 + runs-on: ubuntu-20.04 + target: i686-unknown-linux-musl + - os-name: Linux-aarch64 + runs-on: ubuntu-20.04 + target: aarch64-unknown-linux-musl + runs-on: ${{ matrix.platform.runs-on }} + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Build binary + uses: houseabsolute/actions-rust-cross@v0 + with: + command: ${{ matrix.platform.command }} + target: ${{ matrix.platform.target }} + args: "--locked --release" + strip: true + - name: Publish artifacts and release + uses: houseabsolute/actions-rust-release@v0 + with: + executable-name: taptap + target: ${{ matrix.platform.target }}