forked from oomek/attractplus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
7 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 |
---|---|---|
|
@@ -17,8 +17,6 @@ jobs: | |
- { name: Linux x64 KMS, targetos: linux-x86, amflags: USE_DRM=1 } | ||
- { name: Linux x64 X11, targetos: linux-x86 } | ||
#- { name: MacOS, targetos: mac, os: macos-latest, amflags: prefix=.. USE_SYSTEM_SFML=1, flags: -DSFML_USE_SYSTEM_DEPS=1 } | ||
#- { name: armv7, targetos: linux-arm, os: ubuntu-20.04, archos: buster, shell: bash, amflags: USE_DRM=1 USE_MMAL=1} | ||
#- { name: aarch64, targetos: linux-arm, os: ubuntu-20.04, archos: buster, shell: bash, amflags: USE_DRM=1} | ||
config: | ||
- { name: shared, amflags: STATIC=0 } | ||
- { name: static, amflags: STATIC=1 } | ||
|
@@ -50,7 +48,7 @@ jobs: | |
if: matrix.platform.targetos == 'linux-x86' | ||
run: | | ||
sudo apt update | ||
sudo apt install pkgconf libxrandr-dev libxcursor-dev libudev-dev libopenal-dev libflac-dev libvorbis-dev libgl1-mesa-dev libavformat-dev libfontconfig1-dev libfreetype6-dev libswscale-dev libswresample-dev libarchive-dev libjpeg-dev libglu1-mesa-dev libegl1-mesa-dev libgbm-dev libdrm-dev libcurl4-gnutls-dev libboost-system-dev libboost-filesystem-dev | ||
sudo apt install build-essential cmake pkgconf libxrandr-dev libxcursor-dev libudev-dev libopenal-dev libflac-dev libvorbis-dev libgl1-mesa-dev libavformat-dev libfontconfig1-dev libfreetype6-dev libswscale-dev libswresample-dev libarchive-dev libjpeg-dev libglu1-mesa-dev libegl1-mesa-dev libgbm-dev libdrm-dev libcurl4-gnutls-dev libboost-system-dev libboost-filesystem-dev | ||
- name: Install Linux MXE for Windows cross-building | ||
if: matrix.targetos == 'windows' | ||
|
@@ -153,6 +151,42 @@ jobs: | |
name: ${{matrix.platform.name}}-${{matrix.config.name}}-${{matrix.os}} | ||
path: attractplus-*.7z | ||
|
||
buildMacOS: | ||
runs-on: macos-latest | ||
steps: | ||
- name: AM+ - Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: am | ||
- name: Prepare | ||
id: vars | ||
run: | | ||
which nproc && nbproc=$(nproc) || nbproc=$(getconf _NPROCESSORS_ONLN) | ||
echo "nbproc=${nbproc}" >> $GITHUB_OUTPUT | ||
fe_version= | ||
[[ ${GITHUB_REF} =~ ^refs/tags/* ]] && fe_version="${GITHUB_REF#refs/*/}" | ||
echo "fe_version=${fe_version}" >> $GITHUB_OUTPUT | ||
- name: Install MacOS brew | ||
run: | | ||
brew update | ||
brew upgrade | ||
brew install pkgconfig ffmpeg libarchive libvorbis flac jpeg-turbo boost sfml | ||
- name: Build AM+ | ||
run: | | ||
make -C am -j${{ steps.vars.outputs.nbproc }} VERBOSE=1 FE_VERSION=${{ steps.vars.outputs.fe_version }} prefix=.. USE_SYSTEM_SFML=1 | ||
- name: Prepare macOS artifacts | ||
if: runner.os == 'macOS' | ||
run: | | ||
git -C am/ fetch --unshallow | ||
mkdir -p "${GITHUB_WORKSPACE}"/artifacts | ||
bash am/util/osx/appbuilder.sh | ||
7z a "attractplus-MacOS.7z" ./artifacts/* | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{matrix.platform.name}}-${{matrix.config.name}}-${{matrix.os}} | ||
path: attractplus-*.7z | ||
|
||
buildAMarm: | ||
name: ${{ matrix.platform.name }} ${{ matrix.config.name }} on ${{ matrix.os }} | ||
runs-on: ubuntu-latest | ||
|
@@ -165,7 +199,8 @@ jobs: | |
config: | ||
- { name: shared, amflags: STATIC=0 } | ||
- { name: static, amflags: STATIC=1 } | ||
os: [ buster, bullseye ] | ||
#os: [ buster, bullseye, bookworm ] | ||
os: [ buster ] | ||
exclude: | ||
- platform: { targetos: linux-arm } | ||
config: { name: shared } | ||
|
@@ -178,12 +213,10 @@ jobs: | |
- name: Prepare | ||
id: vars | ||
run: | | ||
which nproc && nbproc=$(nproc) || nbproc=$(getconf _NPROCESSORS_ONLN) | ||
echo "nbproc=${nbproc}" >> $GITHUB_OUTPUT | ||
fe_version= | ||
[[ ${GITHUB_REF} =~ ^refs/tags/* ]] && fe_version="${GITHUB_REF#refs/*/}" | ||
echo "fe_version=${fe_version}" >> $GITHUB_OUTPUT | ||
- name: Build AM+ (ARM) | ||
- name: Build AM+ | ||
uses: uraimo/[email protected] | ||
with: | ||
arch: ${{ matrix.platform.name }} | ||
|