From aac68a4a1b5c3e038e7b2f0076a863b93a2ac8c4 Mon Sep 17 00:00:00 2001 From: Logan McNaughton <848146+loganmc10@users.noreply.github.com> Date: Sun, 16 Feb 2025 11:35:28 +0100 Subject: [PATCH] rename artifacts (#257) --- .github/workflows/build.yml | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) 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 }}