Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
ztelliot committed Apr 12, 2024
1 parent 88f63a0 commit af55384
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,16 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Windows Build
if: matrix.os == 'windows-latest'
- name: Build
shell: bash
run: |
cargo build --profile opt --target ${{ matrix.target }}
mkdir -p build
cp target/*/opt/peerban.exe build/peerban-${{ matrix.target }}.exe
- name: Linux Build
if: matrix.os == 'ubuntu-latest'
run: |
cargo build --release --target ${{ matrix.target }}
mkdir -p build
cp target/*/opt/peerban build/peerban-${{ matrix.target }}
if [ "${{ matrix.os }}" = "windows-latest" ]; then
cp target/*/opt/peerban.exe build/peerban-${{ matrix.target }}.exe
else
cp target/*/opt/peerban build/peerban-${{ matrix.target }}
fi
- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit af55384

Please sign in to comment.