Remove setup python step #77
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 Astera | |
on: push | |
jobs: | |
build: | |
name: Build Astera | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
build-type: [Debug, Release] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
env: | |
CMAKE_GENERATOR: Ninja | |
GITHUB_TOKEN: ${{ github.token }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install CMake and Ninja | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade cmake ninja | |
- name: Install Ubuntu Dependencies | |
if: contains(matrix.os, 'ubuntu') | |
run: | | |
sudo apt update | |
sudo apt install -y mesa-common-dev xorg-dev libgl-dev libopenal-dev | |
- name: Install Mac Dependencies | |
if: contains(matrix.os, 'mac') | |
run: | | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
brew update | |
brew install pkg-config | |
brew install openal-soft | |
echo "OPENALDIR=/usr/local/opt/openal-soft" >> $GITHUB_ENV | |
echo "/usr/local/opt/openal-soft/bin" >> $GITHUB_PATH | |
- name: Configure | |
run: >- | |
cmake -Bbuild -S${{ github.workspace }} | |
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} | |
- name: Build | |
run: cmake --build build |