Skip to content
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

chore(ci): update deprecated actions & runners, add macos arm64 tests #144

Merged
merged 1 commit into from
Sep 11, 2024
Merged
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
31 changes: 16 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Install analysis tools"
run: |
sudo apt-get update
Expand All @@ -27,7 +27,7 @@ jobs:
compiler: ["gcc", "clang"]
openmp: ["0", "1"]
include:
- runner: "macos-11"
- runner: "macos-12"
compiler: "clang"
openmp: "0"
env:
Expand All @@ -37,7 +37,7 @@ jobs:
OBJCOPY: ${{ (startsWith(matrix.runner, 'macos') && 'echo') || 'objcopy' }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run tests
run: ./test/ci/test.sh

Expand All @@ -48,14 +48,16 @@ jobs:
strategy:
fail-fast: false
matrix:
runner: ["ubuntu-20.04", "macos-11", "windows-2019"]
runner: ["ubuntu-20.04", "windows-2019"]
platform: ["x86_64", "i686"]
exclude:
- runner: "macos-11"
platform: "i686"
include:
- runner: "macos-12"
platform: "x86_64"
- runner: "macos-14"
platform: "arm64"
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Ubuntu i686 support
if: runner.os == 'Linux' && matrix.platform == 'i686'
run: |
Expand All @@ -70,7 +72,6 @@ jobs:
-Werror=dev
-DBASE64_BUILD_TESTS=ON
${{ runner.os != 'Windows' && '-DCMAKE_BUILD_TYPE=Release' || '' }}
${{ runner.os == 'macOS' && '-DBASE64_WITH_AVX2=OFF' || '' }}
${{ runner.os == 'Windows' && matrix.platform == 'i686' && '-A Win32' || '' }}
-DBASE64_WITH_AVX512=OFF
- name: CMake Build
Expand All @@ -90,7 +91,7 @@ jobs:
- name: Install deps
run: apk add --update bash build-base git
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run tests
run: ./test/ci/test.sh

Expand All @@ -104,7 +105,7 @@ jobs:
- name: Install deps
run: apk add --update bash build-base cmake git
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: CMake Configure
run: >
cmake
Expand All @@ -130,7 +131,7 @@ jobs:
cc: [gcc, clang]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: uraimo/run-on-arch-action@v2
with:
arch: ${{matrix.arch}}
Expand All @@ -151,7 +152,7 @@ jobs:
cc: [gcc, clang]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: uraimo/run-on-arch-action@v2
with:
arch: ${{matrix.arch}}
Expand Down Expand Up @@ -187,7 +188,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup MSYS2 ${{matrix.msystem}}
uses: msys2/setup-msys2@v2
with:
Expand Down Expand Up @@ -238,7 +239,7 @@ jobs:
CC: cc.exe
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup MSYS2 ${{matrix.msystem}}
uses: msys2/setup-msys2@v2
with:
Expand Down