8000 update CI by perazz · Pull Request #1102 · fortran-lang/fpm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

update CI #1102

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

Merged
merged 4 commits into from
Mar 9, 2025
Merged
Show file tree
Hide file tree
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
14 changes: 8 additions & 6 deletions .github/workflows/CI.yml
8000
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,22 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-12, windows-latest]
os: [ubuntu-latest, macos-13, windows-latest]
toolchain:
- {compiler: gcc, version: 10}
- {compiler: gcc, version: 11}
- {compiler: gcc, version: 12}
- {compiler: gcc, version: 13}
- {compiler: gcc, version: 14}
exclude:
- os: macos-12
toolchain: {compiler: gcc, version: 13}
# Not yet supported by setup-fortran
- os: windows-latest
toolchain: {compiler: gcc, version: 14}
include:
- os: ubuntu-latest
os-arch: linux-x86_64
release-flags: --flag '--static -g -fbacktrace -O3'
- os: macos-12
- os: macos-13
os-arch: macos-x86_64
release-flags: --flag '-g -fbacktrace -O3'
- os: windows-latest
Expand All @@ -59,7 +61,7 @@ jobs:
with:
fpm-version: 'v0.8.0'

# Backport gfortran shared libraries to version 9 folder. This is necessary because the macOS release of fpm
# Backport gfortran shared libraries to version 10 folder. This is necessary because the macOS release of fpm
# 0.10.0 used for bootstrapping has these paths hardcoded in the executable.
- name: MacOS patch libgfortran
if: contains(matrix.os, 'macos') && !contains(matrix.toolchain.version, '10')
Expand Down Expand Up @@ -190,7 +192,7 @@ jobs:
strategy:
fail-fast: false
matrix:
gcc_v: [10,11,12]
gcc_v: [11,12,13]

steps:
- uses: actions/checkout@v4
Expand Down
23 changes: 11 additions & 12 deletions .github/workflows/meta.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
name: metapackage-tests

on:
# On push, only run if any of the metapackage files has changed
push:
paths:
- 'src/*meta*.f90' # On push, only launch job if something has changed in the metapackages
- 'src/*meta*.f90'
- 'src/fpm/*meta*.f90'
- 'src/fpm/manifest/*meta*.f90'
- 'src/ci/meta_tests.sh'
- 'src/.github/workflows/meta.yml'
# Always run on PR or release
pull_request:
release:
types: [published]
# Allow manual triggering
workflow_dispatch:

env:
CI: "ON" # We can detect this in the build system and other vendors implement it
Expand All @@ -35,25 +39,20 @@ jobs:
mpi: openmpi
- os: ubuntu-latest
mpi: mpich
- os: macos-12
- os: macos-13
mpi: openmpi
- os: macos-12
- os: macos-13
mpi: mpich


steps:
- name: Checkout code
uses: actions/checkout@v4

- name: (Ubuntu) setup gcc version
if: contains(matrix.os,'ubuntu')
run: |
echo "GCC_V=10" >> $GITHUB_ENV

- name: (macOS) setup gcc version
if: contains(matrix.os,'macos')
run: |
echo "GCC_V=13" >> $GITHUB_ENV
- name: (Ubuntu/macOS) setup gcc version
if: contains(matrix.os,'ubuntu') || contains(matrix.os,'macos')
run: |
echo "GCC_V=14" >> $GITHUB_ENV

- name: (Windows) Install MSYS2
uses: msys2/setup-msys2@v2
Expand Down
Loading
0