Skip to content

Commit

Permalink
fix targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Sellig6792 committed Jan 5, 2023
1 parent 0ad60dd commit c390801
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ] # Default os for build
target: [ aarch64-unknown-linux-gnu,
i686-pc-windows-gnu, x86_64-pc-windows-gnu,
i686-unknown-linux-gnu, x86_64-unknown-linux-gnu,
x86_64-apple-darwin ]
exclude: # Do not build for macOS on Linux
- target: x86_64-apple-darwin
os: ubuntu-latest
include: # List of all targets to build for and the name for common mortals
- target: aarch64-unknown-linux-gnu
name: arm64
Expand All @@ -97,9 +104,6 @@ jobs:
os: macos-latest





# Runs on latest ubuntu by default except for windows targets
runs-on: ${{ matrix.os }}

Expand All @@ -122,11 +126,11 @@ jobs:
args: --release --target ${{ matrix.target }}

- name: Rename binary (Linux & macOS)
if: matrix.target != 'x86_64-pc-windows-gnu'
if: matrix.target != 'x86_64-pc-windows-gnu' && matrix.target != 'i686-pc-windows-gnu'
run: mv target/${{ matrix.target }}/release/fbf target/${{ matrix.target }}/release/fbf-${{ matrix.name }}

- name: Rename binary (Windows)
if: matrix.target == 'x86_64-pc-windows-gnu'
if: matrix.target == 'x86_64-pc-windows-gnu' || matrix.target == 'i686-pc-windows-gnu'
run: mv target/${{ matrix.target }}/release/fbf.exe target/${{ matrix.target }}/release/fbf-${{ matrix.name }}.exe


Expand Down

0 comments on commit c390801

Please sign in to comment.