Skip to content

Fix an issue in the CI where the Mac runner builds the entire app twi… #1228

Fix an issue in the CI where the Mac runner builds the entire app twi…

Fix an issue in the CI where the Mac runner builds the entire app twi… #1228

Workflow file for this run

name: C/C++ CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
Ubuntu:
name: Ubuntu Latest
runs-on: ubuntu-latest
steps:
- name: install dependencies
run: |
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
sudo apt-get update -y -qq
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libegl1-mesa-dev libgles2-mesa-dev libdirectfb-dev libgtest-dev libsqlite3-dev
- uses: actions/checkout@v4
- name: make
run: make -j2
- name: Run headless test
uses: GabrielBB/[email protected]
with:
run: make tests
Windows:
name: Windows
runs-on: windows-2025
steps:
- uses: actions/checkout@v4
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
- name: Build
run: |
vcpkg integrate install
.\bin\git_version.ps1
msbuild /m /p:Platform=x64 /p:Configuration=Release .\Avara.msvc\Avara.sln
shell: pwsh
- name: Run headless test
run: .\Avara.msvc\x64\Release\Tests.exe
shell: pwsh
env:
AVARA_RSRC_PATH: ${{ github.workspace }}\
- name: WinAvara archive
run: .\bin\winavarazip.ps1
shell: pwsh
- name: deploy main nightly
if: startsWith(github.repository_owner, 'avaraline') && endsWith(github.ref, 'main')
uses: WebFreak001/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: https://uploads.github.com/repos/avaraline/Avara/releases/28954246/assets{?name,label}
release_id: 28954246
asset_path: ./WinAvara.zip
asset_name: Avara-Windows-Nightly-$$.zip
asset_content_type: application/zip
max_releases: 1
macOS:
name: macOS
runs-on: macos-13
steps:
- name: install dependencies
run: |
wget -q "https://github.com/libsdl-org/SDL/releases/download/release-2.26.2/SDL2-2.26.2.dmg"
hdiutil attach SDL2-2.26.2.dmg
sudo cp -R /Volumes/SDL2/SDL2.framework /Library/Frameworks/
brew install googletest
- uses: actions/checkout@v4
- name: Run headless tests
run: make -j4 mactests
- name: make macdist
run: make -j4 macdist
- name: deploy main nightly
if: startsWith(github.repository_owner, 'avaraline') && endsWith(github.ref, 'main')
uses: WebFreak001/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: https://uploads.github.com/repos/avaraline/Avara/releases/28954246/assets{?name,label}
release_id: 28954246
asset_path: ./build/MacAvara.zip
asset_name: Avara-macOS-Nightly-$$.zip
asset_content_type: application/zip
max_releases: 1