Update build.yml #6
Workflow file for this run
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 and Release | |
on: | |
push: | |
branches: | |
- actions | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update && sudo apt-get install -y cmake libsfml-dev libudev-dev libopenal-dev libvorbis-dev libflac-dev | |
- name: Install dependencies | |
if: matrix.os == 'windows-latest' | |
run: | | |
choco install cmake sfml -y | |
- name: Install dependencies | |
if: matrix.os == 'macos-latest' | |
run: | | |
brew update && brew install cmake sfml | |
- name: Configure and build | |
run: | | |
mkdir build && cd build | |
cmake .. | |
cmake --build . | |
- name: Upload executable | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ runner.os }}-executable | |
path: build/src/8ChocChip |