diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 427b08c6..842609c4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,13 @@ on: [push, pull_request] jobs: Linux: runs-on: ubuntu-20.04 + strategy: + matrix: + discord_rpc: [ON, OFF] + drag_drop: [ON, OFF] + netplay: [ON, OFF] + vru: [ON, OFF] + angrylion: [ON, OFF] steps: - uses: actions/checkout@v4 with: @@ -21,12 +28,16 @@ jobs: echo "GIT_REVISION=$(git describe --tags --always)" >> $GITHUB_ENV - name: Build RMG (AppImage) run: | - mkdir Build Build/AppImage Bin/ -p + export build_dir="$(pwd)/Build/$RANDOM" export src_dir="$(pwd)" - export build_dir="$(pwd)/Build/AppImage" - export bin_dir="$(pwd)/Bin/AppImage" + export bin_dir="$(pwd)/Bin/$RANDOM" + mkdir $build_dir Bin/ -p cmake -S "$src_dir" -B "$build_dir" -DCMAKE_BUILD_TYPE="Release" \ - -DUSE_ANGRYLION=ON \ + -DDISCORD_RPC=${{ matrix.discord_rpc }} \ + -DDRAG_DROP=${{ matrix.drag_drop }} \ + -DNETPLAY=${{ matrix.netplay }} \ + -DVRU=${{ matrix.vru }} \ + -DUSE_ANGRYLION=${{ matrix.angrylion }} \ -DCMAKE_INSTALL_PREFIX="/usr" \ -DCMAKE_INSTALL_LIBDIR="lib" \ -DPORTABLE_INSTALL="OFF" \ @@ -35,15 +46,15 @@ jobs: cmake --build "$build_dir" cmake --install "$build_dir" --strip --prefix="$bin_dir/usr" shell: bash - - name: Create AppImage - run: | - ./Package/AppImage/Create.sh - shell: bash - - name: Upload RMG (AppImage) - uses: actions/upload-artifact@v4 - with: - name: RMG-Portable-Linux64-${{ env.GIT_REVISION }} - path: Bin/*.AppImage +# - name: Create AppImage +# run: | +# ./Package/AppImage/Create.sh +# shell: bash +# - name: Upload RMG (AppImage) +# uses: actions/upload-artifact@v4 +# with: +# name: RMG-Portable-Linux64-${{ env.GIT_REVISION }} +# path: Bin/*.AppImage Windows: runs-on: windows-2019