feat: support for macOS-14 and arm64 architecture #138
Workflow file for this run
This file contains hidden or 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: Test | |
on: [push, pull_request] | |
jobs: | |
Test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-13, macos-14, windows-latest] | |
fpm-version: ["v0.8.0", "v0.9.0", "v0.10.1", "latest"] | |
node-version: ["20.x"] | |
exclude: | |
# v0.8.0 install.sh is broken, can't be built from source on macOS ARM64 | |
- os: macos-14 | |
fpm-version: "v0.8.0" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: MacOS system setup | |
if: runner.os == 'macOS' | |
run: | | |
brew install gcc@13 | |
- name: Install dependencies | |
run: npm ci | |
- name: fpm-setup | |
uses: ./ # Uses action in the root directory | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
fpm-version: ${{ matrix.fpm-version }} | |
- name: Checkout the fpm repo | |
if: matrix.fpm-version == 'latest' | |
uses: actions/checkout@v4 | |
with: | |
repository: fortran-lang/fpm | |
- name: Setup the Fortran compiler | |
if: matrix.fpm-version == 'latest' | |
uses: fortran-lang/[email protected] | |
with: | |
compiler: gcc | |
version: 13 | |
- name: Check that all the fpm tests pass | |
if: matrix.fpm-version == 'latest' | |
run: fpm test |