Nightly releases

This commit is contained in:
Scott Brenner
2025-04-27 10:47:52 -07:00
committed by teejusb
parent 566b711b33
commit 38fb28eefa
3 changed files with 98 additions and 4 deletions
+81
View File
@@ -0,0 +1,81 @@
on:
push:
pull_request:
branches:
- beta
paths-ignore:
- '**.md'
name: Nightly release
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest] # TODO: macos-13
include:
- os: ubuntu-latest
name: Ubuntu x86_64
arch: x86_64
install: sudo apt-get update && sudo apt-get install -y libasound2-dev libgl-dev libglu1-mesa-dev libgtk-3-dev libjack-dev libmad0-dev libpulse-dev libudev-dev libxinerama-dev libx11-dev libxrandr-dev libxtst-dev nasm
configure: cmake -B build -DWITH_FFMPEG_JOBS="$(nproc)"
release: |
cmake -B build -DCMAKE_BUILD_TYPE=Release -DWITH_FULL_RELEASE=Off -DWITH_NIGHTLY_RELEASE=On -DWITH_CLUB_FANTASTIC=Off
cmake --build build --target package
path: build/ITGmania-*-NIGHTLY-git-*-Linux-no-songs.tar.gz
- os: ubuntu-24.04-arm
name: Ubuntu ARM
arch: arm
install: sudo apt-get update && sudo apt-get install -y libasound2-dev libgl-dev libglu1-mesa-dev libgtk-3-dev libjack-dev libmad0-dev libpulse-dev libudev-dev libxinerama-dev libx11-dev libxrandr-dev libxtst-dev nasm
configure: cmake -B build -DWITH_FFMPEG_JOBS="$(nproc)" -DWITH_MINIMAID=OFF
release: |
cmake -B build -DCMAKE_BUILD_TYPE=Release -DWITH_FULL_RELEASE=Off -DWITH_NIGHTLY_RELEASE=On -DWITH_CLUB_FANTASTIC=Off
cmake --build build --target package
path: build/ITGmania-*-NIGHTLY-git-*-Linux-no-songs.tar.gz
- os: macos-latest
name: macOS (M1)
arch: arm64
install: brew install nasm
configure: cmake -B build -DCMAKE_OSX_ARCHITECTURES=arm64 -DWITH_FFMPEG_JOBS="$(sysctl -n hw.logicalcpu)"
release: |
cmake -B build -DCMAKE_BUILD_TYPE=Release -DWITH_FULL_RELEASE=Off -DWITH_NIGHTLY_RELEASE=On -DCMAKE_OSX_ARCHITECTURES=arm64 -DWITH_CLUB_FANTASTIC=Off
cmake --build build --target package
path: build/ITGmania-*-NIGHTLY-git-*-macOS-M1-no-songs.dmg
- os: windows-latest
name: Windows
arch: x64
install: |
$vsPath = &"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath
&"$vsPath\VC\Auxiliary\Build\vcvarsall.bat" x64
configure: cmake -B build -DWITH_FFMPEG_JOBS="$env:NUMBER_OF_PROCESSORS"
release: |
cmake -B build -DWITH_FULL_RELEASE=Off -DWITH_NIGHTLY_RELEASE=On -DWITH_CLUB_FANTASTIC=Off
cmake --build build --config Release --target package
path: build/ITGmania-*-NIGHTLY-git-*-Windows-no-songs.exe
name: ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache CMake build directory
uses: actions/cache@v4
with:
path: |
build/*
!${{ matrix.path }}
key: ${{ runner.os }}-${{ matrix.arch }}-cmake-build-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
restore-keys: |
${{ runner.os }}-${{ matrix.arch }}-cmake-build-
- name: Install dependencies
run: ${{ matrix.install }}
- name: Configure
run: ${{ matrix.configure }}
- name: Create nightly release
run: ${{ matrix.release }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ITGmania-${{ github.sha }}-${{ matrix.name }}-${{ matrix.arch }}
path: ${{ matrix.path }}
compression-level: 0