Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: test on macOS/{Intel,M1} #1418

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# Do not cancel other jobs on first failure.
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
os: [ ubuntu-latest, macos-13, macos-14 ]
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -38,10 +38,9 @@ jobs:
distribution: 'zulu'
- name: Verify gradle-wrapper checksum
uses: gradle/wrapper-validation-action@v3
- name: install macOS software
if: matrix.os == 'macos-latest'
- name: configure macOS/Intel Gradle
if: matrix.os == 'macos-13'
run: |
brew install make clang-format
# Prevent Gradle from picking up Java 8 on Github CI runner.
mkdir -p $HOME/.gradle
echo "org.gradle.java.home=$JAVA_HOME_17_X64" > $HOME/.gradle/gradle.properties
Expand All @@ -50,6 +49,21 @@ jobs:
# Put Homebrew installed make first in PATH so "make" is version 4.x.
echo "export PATH=$HOMEBREW_PREFIX/opt/make/libexec/gnubin:$PATH" >> ~/.profile
echo "export PATH=$HOMEBREW_PREFIX/opt/make/libexec/gnubin:$PATH" >> ~/.bashrc
- name: configure macOS/arm64 Gradle
if: matrix.os == 'macos-14'
run: |
# Prevent Gradle from picking up Java 8 on Github CI runner.
mkdir -p $HOME/.gradle
echo "org.gradle.java.home=$JAVA_HOME_17_arm64" > $HOME/.gradle/gradle.properties
# Homebrew prefix is different for x86-64 and aarch64.
export HOMEBREW_PREFIX=/opt/homebrew
# Put Homebrew installed make first in PATH so "make" is version 4.x.
echo "export PATH=$HOMEBREW_PREFIX/opt/make/libexec/gnubin:$PATH" >> ~/.profile
echo "export PATH=$HOMEBREW_PREFIX/opt/make/libexec/gnubin:$PATH" >> ~/.bashrc
- name: install macOS software
if: matrix.os == 'macos-13' || matrix.os == 'macos-14'
run: |
brew install make clang-format
# The build step includes :spotlessJavaBuild.
- name: Build Cooja and Documentation
uses: gradle/gradle-build-action@v3
Expand Down
Loading