-
Notifications
You must be signed in to change notification settings - Fork 20
36 lines (35 loc) · 1.12 KB
/
JuliaStable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: JuliaStable
on:
merge_group:
pull_request:
workflow_dispatch:
jobs:
test:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- name: Set up Actions
uses: actions/checkout@v1
- name: Set up Julia
uses: julia-actions/setup-julia@v1
with:
version: "1"
- name: Use Github Registry for Linux and Mac-OS
if: runner.os != 'Windows'
run: |
julia -e 'using Pkg; Pkg.Registry.rm("General"); Pkg.Registry.add(RegistrySpec(url="https://github.com/JuliaRegistries/General"))'
julia --project -e 'using Pkg; Pkg.instantiate();'
- name: Use Github Registry for Windows
if: runner.os == 'Windows'
run: |
julia -e 'using Pkg; Pkg.Registry.rm(\"General\"); Pkg.Registry.add(RegistrySpec(url=\"https://github.com/JuliaRegistries/General\"))'
julia --project -e 'using Pkg; Pkg.instantiate();'
- name: Run Tests
uses: julia-actions/julia-runtest@latest