Skip to content

Commit

Permalink
ci: 💚 fix binary location
Browse files Browse the repository at this point in the history
  • Loading branch information
Xminent committed Jan 17, 2024
1 parent bb182f4 commit c39d584
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ jobs:
- {
os: windows-2022,
arch: x64,
binary_path: Release/saber.exe,
binary_path: saber.exe,
output_name: saber-windows-x64.exe,
}
- {
os: windows-2022,
arch: x86,
binary_path: Release/saber.exe,
binary_path: saber.exe,
output_name: saber-windows-x86.exe,
}

Expand Down Expand Up @@ -96,17 +96,17 @@ jobs:

- name: Move binary (Linux)
if: runner.os == 'Linux'
run: mv build/${{ matrix.config.binary_path }} build/${{ matrix.config.output_name }}
run: mv build/bin/${{ matrix.config.binary_path }} build/bin/${{ matrix.config.output_name }}

- name: Move binary (Windows)
if: runner.os == 'Windows'
run: Move-Item build/${{ matrix.config.binary_path }} build/${{ matrix.config.output_name }}
run: Move-Item build/bin/${{ matrix.config.binary_path }} build/bin/${{ matrix.config.output_name }}

- name: Upload Binary
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.config.output_name }}
path: ./build/${{ matrix.config.output_name }}
path: ./build/bin/${{ matrix.config.output_name }}
if-no-files-found: error

release:
Expand Down

0 comments on commit c39d584

Please sign in to comment.