Setup GitHub Actions for Rust #9
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 Environment | |
on: [push, pull_request] | |
env: | |
PIPENV_ACTIVE: 1 | |
deb_packages: >- | |
libreadline-dev | |
libwxgtk3.0-gtk3-dev | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y ${{ env.deb_packages }} | |
- name: Build | |
run: | | |
make -j | |
make install | |
bin/bossac --help | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: linux | |
path: bin | |
macos: | |
runs-on: macOS-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
brew update | |
brew install wxmac | |
- name: Build | |
run: | | |
make -j | |
make install | |
bin/bossac --help | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: macos | |
path: bin | |
windows: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: numworks/setup-msys2@v1 | |
with: | |
msystem: MSYS32 | |
- run: msys2do pacman --noconfirm -S -noconfirm --noprogressbar | |
- run: msys2do pacman --noconfirm -U mingw-w64-*-any.pkg.tar.xz | |
- run: | | |
set MSYSTEM=MINGW32 | |
msys2do make -j | |
msys2do make install | |
bin/bossac --help | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: windows | |
path: bin |