mirror of
https://github.com/julia-actions/setup-julia.git
synced 2026-02-12 02:56:54 +08:00
* If the user does not specify the `arch` input, default to `${{ runner.arch }}` (instead of defaulting to `x64`)
* Add a CI workflow that tests the default arch (i.e. tests what happens when the user does not specify the `arch` input)
34 lines
766 B
YAML
34 lines
766 B
YAML
name: Example builds (default arch)
|
|
|
|
on:
|
|
push:
|
|
branches: ['main', 'master', 'releases/*']
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
julia-version: ['1']
|
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1.0.0
|
|
|
|
- name: "Install dependencies"
|
|
run: |
|
|
npm install --legacy-peer-deps
|
|
npm run build
|
|
npm run pack
|
|
|
|
- name: "Set up Julia"
|
|
id: setup-julia
|
|
uses: ./
|
|
with:
|
|
version: ${{ matrix.julia-version }}
|
|
- run: julia --version
|
|
- run: julia --compile=min -O0 -e 'import InteractiveUtils; InteractiveUtils.versioninfo()'
|