oops #167
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: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build for ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
name: [linux, windows, macos] | |
bin: [bff-cli, bff-gui] | |
include: | |
- name: linux | |
os: ubuntu-latest | |
- name: windows | |
os: windows-latest | |
bin_extension: .exe | |
- name: macos | |
os: macos-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- name: Install GTK3 | |
run: sudo apt-get -y install libgtk-3-dev | |
if: matrix.name == 'linux' && matrix.bin == 'bff-gui' | |
- name: Build | |
run: cargo build --release --locked | |
- name: Archive Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.bin }}-${{ matrix.name }}-${{ github.sha }} | |
path: ./target/release/${{ matrix.bin }}${{ matrix.bin_extension }} |