fix: set up correct targets #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main Branch | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
target: | |
[ | |
x86_64-unknown-linux-gnu, | |
i686-unknown-linux-gnu, | |
aarch64-unknown-linux-gnu, | |
] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up dependencies | |
run: sudo apt-get install -y libssl-dev | |
- name: Set up Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: ${{ matrix.target }} | |
- name: Build | |
run: cargo build --release --target ${{ matrix.target }} | |
- name: Check i18n | |
run: scripts/find-missing-i18n.sh | |
- name: Rename Binary | |
run: mv target/${{ matrix.target }}/release/gdvm target/${{ matrix.target }}/release/gdvm-${{ matrix.target }} | |
build-windows: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
target: | |
[x86_64-pc-windows-gnu, i686-pc-windows-gnu, aarch64-pc-windows-gnu] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: ${{ matrix.target }} | |
- name: Build | |
run: cargo build --release --target ${{ matrix.target }} | |
- name: Check i18n | |
run: scripts/find-missing-i18n.sh | |
- name: Rename Binary | |
run: ren target\${{ matrix.target }}\release\gdvm.exe target\${{ matrix.target }}\release\gdvm-${{ matrix.target }}.exe | |
build-macos: | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
target: [x86_64-apple-darwin, aarch64-apple-darwin] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up dependencies | |
run: brew install openssl | |
- name: Set up Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: ${{ matrix.target }} | |
- name: Build | |
run: cargo build --release --target ${{ matrix.target }} | |
- name: Check i18n | |
run: scripts/find-missing-i18n.sh |