CI: Pass SDL_CONFIG to the ./configure script
[pcsx_rearmed.git] / .github / workflows / ci-linux-armhf.yml
CommitLineData
5d53bb85 1name: CI (Linux armhf)
2on: [push, pull_request]
3jobs:
4 build-linux:
5 runs-on: ubuntu-latest
6 steps:
7 - uses: actions/checkout@v2
8 with:
9 submodules: true
10 - name: Install dependencies
11 run: |
12 whoami
13 sudo bash -c 'echo ''deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports focal main restricted universe'' > /etc/apt/sources.list.d/armhf.list'
14 sudo sed -i 's/^deb \([^[]\)/deb [arch=amd64] \1/' /etc/apt/sources.list
15 sudo dpkg --add-architecture armhf
16 sudo apt-get update -qq
17 sudo apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
18 .github/extract-foreign-all.sh armhf
19 - name: configure
d2bbb7d0 20 run: DUMP_CONFIG_LOG=1 CROSS_COMPILE=arm-linux-gnueabihf- SDL_CONFIG=usr/bin/sdl-config PATH=$PATH:usr/bin CFLAGS='-Iusr/include/ -Iusr/include/SDL' LDFLAGS='-Lusr/lib/arm-linux-gnueabihf/ -Llib/arm-linux-gnueabihf/ -Wl,-rpath-link=lib/arm-linux-gnueabihf/,-rpath-link=usr/lib/arm-linux-gnueabihf/,-rpath-link=usr/lib/arm-linux-gnueabihf/pulseaudio/' ./configure
5d53bb85 21 - name: make
22 run: make