diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9b553f5..363d910 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Release +name: Build on: workflow_dispatch @@ -7,18 +7,21 @@ jobs: strategy: fail-fast: false matrix: - target: - - x86_64-unknown-linux-musl + # platform: [linux/amd64, linux/arm64] + platform: [linux/amd64] include: - - target: x86_64-unknown-linux-musl - os: ubuntu-latest - runs-on: ${{ matrix.os }} + - platform: linux/amd64 + target: x86_64-unknown-linux-musl + runner: ubuntu-latest + # - platform: linux/arm64 + # target: aarch64-unknown-linux-musl + # runner: ubuntu-latest + runs-on: ${{ matrix.runner }} steps: - uses: actions/checkout@v4 - name: Build Linux - if: matrix.os == 'ubuntu-latest' run: | - docker run --rm -t \ + docker run --platform ${{ matrix.platform }} --rm -t \ -v $HOME/.cargo/registry/:/root/.cargo/registry \ -v "$(pwd)":/volume \ clux/muslrust:stable \