Skip to content

Commit

Permalink
mac build on macos-13 instead of macos-14 (latest)
Browse files Browse the repository at this point in the history
At least this runs the test in a reasonable amount of time.  Still TBD why macos-14 test run is so slow.
  • Loading branch information
tra authored Apr 29, 2024
1 parent b28e677 commit 7d2acfe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/avara-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
max_releases: 1
macOS:
name: macOS
runs-on: macOS-latest
runs-on: macos-13
steps:
- name: install dependencies
run: |
Expand All @@ -67,8 +67,10 @@ jobs:
sudo cp -R /Volumes/SDL2/SDL2.framework /Library/Frameworks/
brew install googletest
- uses: actions/checkout@v4
- name: make
run: make clean tests macdist
- name: Run headless tests
run: make -j3 tests
- name: make macdist
run: make -j3 clean macdist
- name: deploy main nightly
if: startsWith(github.repository_owner, 'avaraline') && endsWith(github.ref, 'main')
uses: WebFreak001/[email protected]
Expand Down
1 change: 1 addition & 0 deletions src/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ class TestGame : public CAvaraGame {
// force tick to happen by resetting nextScheduledFrame
nextScheduledFrame = 0;
itsNet->activePlayersDistribution = 1;
nextPingTime = std::numeric_limits<uint32_t>::max(); // prevent pings
return CAvaraGame::GameTick();
}
};
Expand Down

0 comments on commit 7d2acfe

Please sign in to comment.