diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6e08476..8a4e540 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,8 +18,10 @@ jobs: include: - os: ubuntu-24.04 target: x86_64-unknown-linux-gnu + arch: linux-x86_64 - os: ubuntu-24.04-arm target: aarch64-unknown-linux-gnu + arch: linux-aarch64 steps: - uses: actions/checkout@v4 with: @@ -43,18 +45,22 @@ jobs: - name: Build run: | cargo build --release -v --target=${{ matrix.target }} + mkdir output + cp target/${{ matrix.target }}/release/gopher64 output/gopher64-${{ matrix.arch }} - name: Upload file uses: actions/upload-artifact@v4 with: - name: gopher64-${{ matrix.target }} - path: target/${{ matrix.target }}/release/gopher64 + name: gopher64-${{ matrix.arch }} + path: output/gopher64-${{ matrix.arch }} build-windows: runs-on: windows-2025 strategy: fail-fast: false matrix: - target: [x86_64-pc-windows-msvc] + include: + - target: x86_64-pc-windows-msvc + arch: windows-x86_64 steps: - uses: actions/checkout@v4 with: @@ -66,18 +72,24 @@ jobs: - name: Build run: | cargo build --release -v --target=${{ matrix.target }} + mkdir output + cp target/${{ matrix.target }}/release/gopher64.exe output/gopher64-${{ matrix.arch }}.exe - name: Upload file uses: actions/upload-artifact@v4 with: - name: gopher64-${{ matrix.target }} - path: target/${{ matrix.target }}/release/gopher64.exe + name: gopher64-${{ matrix.arch }} + path: output/gopher64-${{ matrix.arch }}.exe build-macos: runs-on: macos-14 strategy: fail-fast: false matrix: - target: [x86_64-apple-darwin, aarch64-apple-darwin] + include: + - target: x86_64-apple-darwin + arch: mac-x86_64 + - target: aarch64-apple-darwin + arch: mac-aarch64 steps: - uses: actions/checkout@v4 with: @@ -89,8 +101,10 @@ jobs: - name: Build run: | cargo build --release -v --target=${{ matrix.target }} + mkdir output + cp target/${{ matrix.target }}/release/gopher64 output/gopher64-${{ matrix.arch }} - name: Upload file uses: actions/upload-artifact@v4 with: - name: gopher64-${{ matrix.target }} - path: target/${{ matrix.target }}/release/gopher64 + name: gopher64-${{ matrix.arch }} + path: output/gopher64-${{ matrix.arch }}