Skip to content

Commit

Permalink
fix CI config (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
ytdHuang authored Sep 22, 2024
1 parent 7605b69 commit e21f940
Showing 1 changed file with 20 additions and 26 deletions.
46 changes: 20 additions & 26 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ on:

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} ( ${{ matrix.group }} )
runs-on: ${{ matrix.os }}
name: Julia ${{ matrix.version }} - ${{ matrix.node.os }} - ${{ matrix.node.arch }} ( ${{ matrix.group }} )
runs-on: ${{ matrix.node.os }}
permissions: # needed to allow julia-actions/cache to delete old caches that it has created
actions: write
contents: read
Expand All @@ -42,43 +42,37 @@ jobs:
version:
- '1.10' # oldest
# - '1' # latest
os:
- ubuntu-latest
- windows-latest
arch:
- x64
node:
- os: 'ubuntu-latest'
arch: 'x64'
- os: 'windows-latest'
arch: 'x64'
- os: 'macOS-latest'
arch: 'arm64'
group:
- Core
- 'Core'

include:
# for core tests on macOS (M-series chip)
- version: '1.10' # oldest
os: 'macOS-latest'
arch: 'x64'
group: 'Core'
# - version: '1' # latest
# os: 'macOS-latest'
# arch: 'arm64'
# group: 'Core'
# for code quality tests
- version: '1'
node:
os: 'ubuntu-latest'
arch: 'x64'
group: 'Code-Quality'

# for core tests (intermediate versions)
# - version: '1.x'
# os: 'ubuntu-latest'
# arch: 'x64'
# node:
# os: 'ubuntu-latest'
# arch: 'x64'
# group: 'Core'

# for code quality tests
- version: '1'
os: 'ubuntu-latest'
arch: 'x64'
group: 'Code-Quality'

steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
arch: ${{ matrix.node.arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
Expand Down

0 comments on commit e21f940

Please sign in to comment.