Skip to content

Commit

Permalink
Add CC and CXX variables docker-compose
Browse files Browse the repository at this point in the history
Also switch appimage workflow to clang for now (gcc breaks arm64 build)
  • Loading branch information
Jammyjamjamman committed Jan 25, 2025
1 parent 9a965a5 commit f40e4da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,14 @@ jobs:
- if: ${{ ! contains(matrix.platform, 'amd64') }}
uses: docker/setup-qemu-action@v3

- name: Set variables
run: |
if [ -z "$VERSION" ]; then
echo "VERSION=snapshot" >> $GITHUB_ENV
fi
- name: Build AppImage
run: |
export HOSTUID=$(id -u) HOSTGID=$(id -g)
docker compose -f mk/linux/docker/docker-compose.yml run --rm build
env:
PLATFORM: ${{ matrix.platform }}
CC: clang
CXX: clang++

- name: Create sha256sum
run: |
Expand Down
1 change: 1 addition & 0 deletions mk/linux/build-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ sudo DEBIAN_FRONTEND=noninteractive -i sh -c \
apt upgrade -y &&
apt install --no-install-recommends -y
build-essential
$CC
libcurl4-gnutls-dev
libsdl2-dev
libopenal-dev
Expand Down
4 changes: 3 additions & 1 deletion mk/linux/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ services:
environment:
HOSTUID: ${HOSTUID}
HOSTGID: ${HOSTGID}
VERSION: ${VERSION}
VERSION: ${VERSION:-snapshot}
WORKSPACE: ${WORKSPACE}
CC: "${CC:-gcc}"
CXX: "${CXX:-g++}"
image: andy5995/linuxdeploy:v3-focal
platform: ${PLATFORM}
volumes:
Expand Down

0 comments on commit f40e4da

Please sign in to comment.