Skip to content

Commit

Permalink
Fix Linux build (#3)
Browse files Browse the repository at this point in the history
* Install required Linux libs

* Run upgrade before installing packages

* More apt magic to get all packages we need

* Upgrade > update

* Update build.yaml

Cleanup Linux steps per PR request. Try to get away without apt update/upgrade

* Update build.yaml

On some runners it seems apt update is needed. Add it to the build
  • Loading branch information
Nicky-D authored Apr 5, 2024
1 parent cc1cec0 commit 39c49a3
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,26 @@ jobs:
addrsize: ["64"]
runs-on: ${{ matrix.os }}
steps:
- name: Update apt
if: runner.os == 'Linux'
run: sudo apt update

- name: Setup Linux Build Dependencies
if: ${{ runner.os == 'Linux' }}
run: sudo apt-get install ninja-build
if: runner.os == 'Linux'
run: >
sudo apt install -y mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev
libxext-dev libibus-1.0-dev
fcitx-libs-dev libudev-dev libunwind-dev
libwayland-dev libxkbcommon-dev libpulse-dev libsndio-dev ninja-build
- name: Setup macOS Build Dependencies
if: ${{ runner.os == 'macOS' }}
run: brew install ninja

- name: Setup Windows Build Dependencies
if: ${{ runner.os == 'Windows' }}
run: choco install ninja

- name: Build with autobuild
uses: secondlife/action-autobuild@v3
with:
Expand Down

0 comments on commit 39c49a3

Please sign in to comment.