-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Wayland builds * Install wayland dependency * Install libwayland-dev * Install libxkbcommon-dev * Also build x11 in the CI * Typo * Update Makefile to package x11 and wayland builds * Update CD to build for wayland * Try to run arm builds on 22.04 * Try to fix binutils installation * Generalize the fix * Fix * Attempt to fix OSX build * Revert "Attempt to fix OSX build" This reverts commit 9cdd48b. * Try to adapt the .deb * Fix arm x11 build * Remove golint here too * tag properly * Workaround for the fullscreen toggle bug on wayland
- Loading branch information
Showing
6 changed files
with
134 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,67 @@ defaults: | |
shell: bash | ||
|
||
jobs: | ||
build_linux: | ||
build_linux_wayland_x86_64: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.19.5' | ||
- run: echo "VERSION=$(echo ${{ github.event.release.tag_name }} | cut -c 2-)" >> $GITHUB_ENV | ||
- run: sudo apt-get update -q | ||
- run: sudo apt-get install libopenal-dev xorg-dev libgl1-mesa-dev libwayland-dev libxkbcommon-dev -y --allow-unauthenticated | ||
- run: go build -tags wayland -v | ||
- run: OS=Linux ARCH=x86_64 DISPDRIVER=wayland VERSION=$VERSION make tar | ||
- run: OS=Linux ARCH=x86_64 DISPDRIVER=wayland VERSION=$VERSION make deb | ||
- run: sha256sum Ludo-Linux-wayland-x86_64-${VERSION}.tar.gz > Ludo-Linux-wayland-x86_64-${VERSION}.tar.gz.sha256 | ||
|
||
- name: Upload Release Asset | ||
uses: alexellis/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
asset_paths: '["./Ludo-*.tar.gz*", "./*.deb"]' | ||
|
||
build_linux_wayland_arm: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.19.5' | ||
- run: echo "VERSION=$(echo ${{ github.event.release.tag_name }} | cut -c 2-)" >> $GITHUB_ENV | ||
- run: sudo apt update -q | ||
- run: sudo apt install binutils-multiarch | ||
- run: sudo dpkg --add-architecture armhf | ||
- run: echo "" | sudo tee /etc/apt/sources.list | ||
- run: echo "deb [arch=amd64] http://us.archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list | ||
- run: echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list | ||
- run: echo "deb [arch=amd64] http://us.archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list | ||
- run: echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list | ||
- run: echo "deb [arch=amd64] http://us.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list | ||
- run: echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list | ||
- run: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 6B05F25D762E3157 | ||
- run: sudo apt update -q | ||
- run: sudo apt install -f libgl1-mesa-dev:amd64 libc6-dev:armhf gcc-arm-linux-gnueabihf libopenal-dev:armhf libgl1-mesa-dev:armhf libxcursor-dev:armhf libxrandr-dev:armhf libxinerama-dev:armhf libxi-dev:armhf libwayland-dev:armhf libxkbcommon-dev:armhf -y --allow-unauthenticated | ||
- run: export PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig/ | ||
- run: GOOS=linux GOARCH=arm GOARM=7 CGO_ENABLED=1 CC=arm-linux-gnueabihf-gcc go build -tags wayland -v | ||
- run: OS=Linux ARCH=arm DISPDRIVER=wayland VERSION=$VERSION make tar | ||
- run: OS=Linux ARCH=arm DISPDRIVER=wayland VERSION=$VERSION make deb | ||
- run: sha256sum Ludo-Linux-wayland-arm-${VERSION}.tar.gz > Ludo-Linux-wayland-arm-${VERSION}.tar.gz.sha256 | ||
|
||
- name: Upload Release Asset | ||
uses: alexellis/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
asset_paths: '["./Ludo-*.tar.gz*", "./*.deb"]' | ||
|
||
build_linux_x11_x86_64: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -21,9 +81,10 @@ jobs: | |
- run: echo "VERSION=$(echo ${{ github.event.release.tag_name }} | cut -c 2-)" >> $GITHUB_ENV | ||
- run: sudo apt-get update -q | ||
- run: sudo apt-get install libopenal-dev xorg-dev libgl1-mesa-dev -y --allow-unauthenticated | ||
- run: OS=Linux ARCH=x86_64 VERSION=$VERSION make tar | ||
- run: OS=Linux ARCH=x86_64 VERSION=$VERSION make deb | ||
- run: sha256sum Ludo-Linux-x86_64-${VERSION}.tar.gz > Ludo-Linux-x86_64-${VERSION}.tar.gz.sha256 | ||
- run: go build -tags x11 -v | ||
- run: OS=Linux ARCH=x86_64 DISPDRIVER=x11 VERSION=$VERSION make tar | ||
- run: OS=Linux ARCH=x86_64 DISPDRIVER=x11 VERSION=$VERSION make deb | ||
- run: sha256sum Ludo-Linux-x11-x86_64-${VERSION}.tar.gz > Ludo-Linux-x11-x86_64-${VERSION}.tar.gz.sha256 | ||
|
||
- name: Upload Release Asset | ||
uses: alexellis/[email protected] | ||
|
@@ -32,7 +93,7 @@ jobs: | |
with: | ||
asset_paths: '["./Ludo-*.tar.gz*", "./*.deb"]' | ||
|
||
build_linux_arm: | ||
build_linux_x11_arm: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -42,6 +103,7 @@ jobs: | |
with: | ||
go-version: '1.19.5' | ||
- run: echo "VERSION=$(echo ${{ github.event.release.tag_name }} | cut -c 2-)" >> $GITHUB_ENV | ||
- run: sudo apt update -q | ||
- run: sudo apt install binutils-multiarch | ||
- run: sudo dpkg --add-architecture armhf | ||
- run: echo "" | sudo tee /etc/apt/sources.list | ||
|
@@ -55,10 +117,10 @@ jobs: | |
- run: sudo apt update -q | ||
- run: sudo apt install -f libgl1-mesa-dev:amd64 libxxf86vm-dev:armhf libc6-dev:armhf gcc-arm-linux-gnueabihf libopenal-dev:armhf libgl1-mesa-dev:armhf libxcursor-dev:armhf libxrandr-dev:armhf libxinerama-dev:armhf libxi-dev:armhf -y --allow-unauthenticated | ||
- run: export PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig/ | ||
- run: GOOS=linux GOARCH=arm GOARM=7 CGO_ENABLED=1 CC=arm-linux-gnueabihf-gcc go build -v | ||
- run: OS=Linux ARCH=arm VERSION=$VERSION make tar | ||
- run: OS=Linux ARCH=arm VERSION=$VERSION make deb | ||
- run: sha256sum Ludo-Linux-arm-${VERSION}.tar.gz > Ludo-Linux-arm-${VERSION}.tar.gz.sha256 | ||
- run: GOOS=linux GOARCH=arm GOARM=7 CGO_ENABLED=1 CC=arm-linux-gnueabihf-gcc go build -tags x11 -v | ||
- run: OS=Linux ARCH=arm DISPDRIVER=x11 VERSION=$VERSION make tar | ||
- run: OS=Linux ARCH=arm DISPDRIVER=x11 VERSION=$VERSION make deb | ||
- run: sha256sum Ludo-Linux-x11-arm-${VERSION}.tar.gz > Ludo-Linux-x11-arm-${VERSION}.tar.gz.sha256 | ||
|
||
- name: Upload Release Asset | ||
uses: alexellis/[email protected] | ||
|
@@ -78,7 +140,6 @@ jobs: | |
go-version: '1.19.5' | ||
- run: echo "VERSION=$(echo ${{ github.event.release.tag_name }} | cut -c 2-)" >> $GITHUB_ENV | ||
- run: echo "/Users/runner/go/bin" >> $GITHUB_PATH | ||
- run: go install golang.org/x/lint/golint@latest | ||
- run: go install honnef.co/go/tools/cmd/staticcheck@latest | ||
- run: brew install openal-soft | ||
- run: echo ${{ secrets.OSXCERT }} | base64 --decode > dev.p12 | ||
|
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
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
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
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
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