diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 601acbe5d..7eca2d452 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -46,13 +46,16 @@ jobs: strategy: fail-fast: false matrix: - target: [aarch64-unknown-linux-gnu, aarch64-unknown-linux-musl] - use-cross: [true] + profile: ["dev", "release"] + os: ["ubuntu-latest"] + use-cross: [false] include: + - target: aarch64-unknown-linux-gnu + use-cross: true + - target: aarch64-unknown-linux-musl + use-cross: true - target: x86_64-unknown-linux-gnu - use-cross: false - target: x86_64-unknown-linux-musl - use-cross: false # - os: macos-latest # target: aarch64-apple-darwin # - os: macos-latest @@ -61,7 +64,7 @@ jobs: # target: x86_64-pc-windows-msvc # - os: windows-latest # target: x86_64-pc-windows-gnu - runs-on: ${{ matrix.os || 'ubuntu-latest'}} + runs-on: ${{ matrix.os }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_REPO: ${{ github.repository }} @@ -89,8 +92,8 @@ jobs: uses: taiki-e/install-action@f2b65a3e67b2ba5ed3b4a631b5e460896e975708 # v2.42.37 with: tool: cross - - run: mkdir dist - - run: ${{ (!matrix.os && matrix.use-cross) && 'cross' || 'cargo' }} rustc --locked ${{ github.ref_name == github.event.repository.default_branch && '--release' || '' }} --target=${{ matrix.target }} -- --emit=link=dist/${{ needs.env.outputs.BINARY_NAME }} + + - run: ${{ (matrix.use-cross) && 'cross' || 'cargo' }} rustc --locked ${{ github.ref_name == github.event.repository.default_branch && '--release' || '' }} --target=${{ matrix.target }} -- --emit=link=dist/${{ needs.env.outputs.BINARY_NAME }} - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 with: name: ${{ matrix.target }}