Install SCons via Pip in workflow.
This gives better control over the installed version of SCons.
@@ -19,15 +19,23 @@ jobs:
steps:
- uses: actions/checkout@v2
+ - name: Set up Python 3
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.x
+ - name: Install SCons
+ run: |
+ python -m pip install --upgrade pip
+ python -m pip install scons
- name: Install APT dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
- sudo apt-get install scons libsdl2-dev
+ sudo apt-get install libsdl2-dev
- name: Install Brew dependencies
if: runner.os == 'macOS'
run: |
- brew install scons sdl2
+ brew install sdl2
- name: Build package.
working-directory: buildsys/scons
env:
