Skip to content

Use Arm64 builds for macos support #7

Use Arm64 builds for macos support

Use Arm64 builds for macos support #7

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 }}"

Check failure on line 30 in .github/workflows/testing-mysql-server-8.yml

View workflow run for this annotation

GitHub Actions / Build and Test

Invalid workflow file

The workflow is not valid. .github/workflows/testing-mysql-server-8.yml (Line: 30, Col: 13): Unrecognized named-value: 'macos-14'. Located at position 14 within expression: matrix.os == macos-14 .github/workflows/testing-mysql-server-8.yml (Line: 34, Col: 13): Unrecognized named-value: 'macos-14'. Located at position 14 within expression: 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 >> $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