Skip to content

Commit

Permalink
Support two macOS GitHub Actions runner images
Browse files Browse the repository at this point in the history
- Update Linux and macOS GitHub Actions runner images
- Fix GitHub Actions compilation on MinGW
  • Loading branch information
encelo committed Mar 12, 2024
1 parent 75430ae commit 3ddf743
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, workflow_dispatch]
jobs:
analyze:
name: 'Analyze'
runs-on: 'ubuntu-20.04'
runs-on: 'ubuntu-22.04'

strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- CC: clang
CXX: clang++

runs-on: 'ubuntu-20.04'
runs-on: 'ubuntu-22.04'

steps:
- name: 'Checkout Code'
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ jobs:
macOS:
strategy:
fail-fast: false
runs-on: 'macOS-11'
matrix:
os: [macOS-12, macOS-14]

runs-on: ${{ matrix.os }}

steps:
- name: 'Checkout Code'
Expand Down Expand Up @@ -45,7 +48,11 @@ jobs:
export BRANCH_NAME=$(git describe --tags --exact-match 2> /dev/null || git symbolic-ref -q --short HEAD || git rev-parse --short HEAD)
export DEPLOY_MESSAGE=`sed 's/BRANCH_NAME/'"$BRANCH_NAME"'/' <<< "$DEPLOY_MESSAGE"`
export OS=darwin
if [[ "${{ matrix.os }}" == "macOS-14" ]]; then
export OS=macos14
else
export OS=macos12
fi
export CC=appleclang
cd ..
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mingw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: |
$env:MSYSTEM = "MINGW64"
C:\msys64\usr\bin\bash -lc 'pacman --needed --noconfirm -S cmake'
C:\msys64\usr\bin\bash -lc 'pacman --needed --noconfirm -S mingw-w64-x86_64-cmake'
if ("${{ matrix.CC }}" -eq "gcc") { C:\msys64\usr\bin\bash -lc 'pacman --needed --noconfirm -S mingw-w64-x86_64-gcc' }
else { C:\msys64\usr\bin\bash -lc 'pacman --needed --noconfirm -S mingw-w64-x86_64-clang' }
Expand All @@ -59,7 +59,7 @@ jobs:
$env:MSYSTEM = "MINGW64"
C:\msys64\usr\bin\bash.exe -lc 'cmake -G \"MSYS Makefiles\" -B ../ncline-build-Release -D CMAKE_BUILD_TYPE=Release'
C:\msys64\usr\bin\bash.exe -lc "cmake -G 'MSYS Makefiles' -B ../ncline-build-Release -D CMAKE_BUILD_TYPE=Release"
- name: 'Make'
env:
Expand Down

0 comments on commit 3ddf743

Please sign in to comment.