mirror of
https://github.com/julia-actions/setup-julia.git
synced 2026-03-03 20:36:53 +08:00
Fix CI in #352
This commit is contained in:
49
.github/workflows/example-builds.yml
vendored
49
.github/workflows/example-builds.yml
vendored
@@ -12,6 +12,9 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
@@ -19,24 +22,33 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
# include '1.6' here to test info message about lts tag existing
|
julia-version:
|
||||||
julia-version: ['1.0.5', '1.2', '^1.5.0-beta1', '1', '1.6', 'lts', 'pre']
|
- '1.0.5'
|
||||||
julia-arch: [x64, x86]
|
- '1.2'
|
||||||
os: [ubuntu-latest, macOS-latest, windows-latest]
|
- '^1.5.0-beta1'
|
||||||
|
- '1'
|
||||||
|
- '1.6'
|
||||||
|
- '1.10' # include '1.10' here to test info message about lts tag existing
|
||||||
|
- 'lts'
|
||||||
|
- 'pre'
|
||||||
|
julia-wordsize:
|
||||||
|
- 64
|
||||||
|
- 32
|
||||||
|
os:
|
||||||
|
- ubuntu-latest
|
||||||
|
- windows-latest
|
||||||
|
- macos-15-intel # Intel
|
||||||
|
- macos-latest # Apple Silicon
|
||||||
# 32-bit Julia binaries are not available on macOS
|
# 32-bit Julia binaries are not available on macOS
|
||||||
exclude:
|
exclude:
|
||||||
- os: macOS-latest
|
- os: macos-15-intel # Intel
|
||||||
julia-arch: x86
|
julia-wordsize: 32
|
||||||
include:
|
- os: macos-latest # Apple Silicon
|
||||||
- os: macOS-latest
|
julia-wordsize: 32
|
||||||
julia-arch: aarch64
|
|
||||||
julia-version: 'lts'
|
|
||||||
- os: macOS-latest
|
|
||||||
julia-arch: aarch64
|
|
||||||
julia-version: '1'
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6.0.2
|
- uses: actions/checkout@v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- uses: actions/setup-node@v6
|
- uses: actions/setup-node@v6
|
||||||
if: ${{ ! startsWith(github.ref, 'refs/heads/releases') }}
|
if: ${{ ! startsWith(github.ref, 'refs/heads/releases') }}
|
||||||
@@ -55,7 +67,14 @@ jobs:
|
|||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.julia-version }}
|
version: ${{ matrix.julia-version }}
|
||||||
arch: ${{ matrix.julia-arch }}
|
# If `julia-wordsize` is 32, then we set `arch` to `x86`, because we know that
|
||||||
|
# 32-bit builds of Julia are only available for x86.
|
||||||
|
#
|
||||||
|
# If `julia-wordsize` is 64, then we set `arch` to `${{ runner.arch }}`, which
|
||||||
|
# GitHub will automatically expand to the correct value (`x86_64` or `aarch64`)
|
||||||
|
# based on the architecture of the underlying GitHub Runner (virtual machine).
|
||||||
|
arch: ${{ matrix.julia-wordsize == '32' && 'x86' || runner.arch }}
|
||||||
|
|
||||||
- run: julia --version
|
- run: julia --version
|
||||||
- run: julia --compile=min -O0 -e 'import InteractiveUtils; InteractiveUtils.versioninfo()'
|
- run: julia --compile=min -O0 -e 'import InteractiveUtils; InteractiveUtils.versioninfo()'
|
||||||
- name: "Check that the correct julia is used and that archive mtimes are maintained"
|
- name: "Check that the correct julia is used and that archive mtimes are maintained"
|
||||||
|
|||||||
Reference in New Issue
Block a user