Use Arm64 builds for macos support #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, ubuntu-24.04, macos-14] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '8' | |
distribution: 'corretto' | |
cache: 'maven' | |
- name: Set up Homebrew | |
if: matrix.os == 'macos-14' | |
id: set-up-homebrew | |
uses: Homebrew/actions/setup-homebrew@master | |
- name: Install GNU binutils | |
if: matrix.os == 'macos-14' | |
run: | | |
brew install binutils | |
echo /opt/homebrew/opt/binutils/bin/strip | cat - $GITHUB_PATH > /tmp/path && mv /tmp/path $GITHUB_PATH | |
- name: Install libaio-dev | |
if: matrix.os != 'macos-14' | |
run: | | |
sudo apt-get install -y libaio-dev | |
- name: Run Maven install | |
run: ./mvnw -B --no-transfer-progress clean install -pl testing-mysql-server-8 -am |