Skip to content

Commit a54be8e

Browse files
authored
Update GitHub Actions setup and move to Cirrus for other platforms (#262)
1 parent a08f381 commit a54be8e

File tree

4 files changed

+70
-91
lines changed

4 files changed

+70
-91
lines changed

.cirrus.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
task:
2+
timeout_in: 15m
3+
matrix:
4+
- name: FreeBSD
5+
freebsd_instance:
6+
image_family: freebsd-13-1
7+
env:
8+
matrix:
9+
- JULIA_VERSION: 1.6
10+
- JULIA_VERSION: 1
11+
- JULIA_VERSION: nightly
12+
- name: Linux ARMv8
13+
arm_container:
14+
image: ubuntu:latest
15+
env:
16+
matrix:
17+
- JULIA_VERSION: 1.6
18+
- JULIA_VERSION: 1
19+
- JULIA_VERSION: nightly
20+
- name: musl Linux
21+
container:
22+
image: alpine:3.14
23+
env:
24+
matrix:
25+
- JULIA_VERSION: 1.6
26+
- JULIA_VERSION: 1
27+
- JULIA_VERSION: nightly
28+
- name: MacOS M1
29+
macos_instance:
30+
image: ghcr.io/cirruslabs/macos-monterey-base:latest
31+
env:
32+
matrix:
33+
# - JULIA_VERSION: 1.6 # not available
34+
- JULIA_VERSION: 1
35+
- JULIA_VERSION: nightly
36+
37+
allow_failures: $JULIA_VERSION == 'nightly'
38+
install_script: |
39+
URL="https://raw.githubusercontent.com/ararslan/CirrusCI.jl/master/bin/install.sh"
40+
set -x
41+
if [ "$(uname -s)" = "Linux" ] && command -v apt; then
42+
apt update
43+
apt install -y curl
44+
fi
45+
if command -v curl; then
46+
sh -c "$(curl ${URL})"
47+
elif command -v wget; then
48+
sh -c "$(wget ${URL} -O-)"
49+
elif command -v fetch; then
50+
sh -c "$(fetch ${URL} -o -)"
51+
else
52+
echo "No downloader installed! :( Install one! :)"
53+
fi
54+
build_script:
55+
- cirrusjl build
56+
test_script:
57+
- cirrusjl test
58+
coverage_script:
59+
- cirrusjl coverage codecov

.drone.jsonnet

Lines changed: 0 additions & 28 deletions
This file was deleted.

.drone.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/CI.yml

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ on:
77
- master
88
tags: '*'
99

10+
concurrency:
11+
# Skip intermediate builds: always.
12+
# Cancel intermediate builds: always.
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1016
jobs:
1117
test:
12-
timeout-minutes: 10
18+
timeout-minutes: 15
1319
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - provider ${{ matrix.provider }} - ${{ matrix.threads }} thread(s)
1420
runs-on: ${{ matrix.os }}
1521
env:
@@ -45,21 +51,12 @@ jobs:
4551
threads: '2'
4652

4753
steps:
48-
- uses: actions/checkout@v2
54+
- uses: actions/checkout@v3
4955
- uses: julia-actions/setup-julia@v1
5056
with:
5157
version: ${{ matrix.version }}
5258
arch: ${{ matrix.arch }}
53-
- uses: actions/cache@v2
54-
env:
55-
cache-name: cache-artifacts
56-
with:
57-
path: ~/.julia/artifacts
58-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
59-
restore-keys: |
60-
${{ runner.os }}-test-${{ env.cache-name }}-
61-
${{ runner.os }}-test-
62-
${{ runner.os }}-
59+
- uses: julia-actions/cache@v1
6360
- name: Set Preferences
6461
run: julia --project .github/set_ci_preferences.jl "${{ matrix.provider }}"
6562
- uses: julia-actions/julia-runtest@v1
@@ -71,21 +68,11 @@ jobs:
7168
Documentation:
7269
runs-on: ubuntu-latest
7370
steps:
74-
- uses: actions/checkout@v2
71+
- uses: actions/checkout@v3
7572
- uses: julia-actions/setup-julia@latest
7673
with:
7774
version: 1
78-
- name: Cache artifacts
79-
uses: actions/cache@v2
80-
env:
81-
cache-name: cache-artifacts
82-
with:
83-
path: ~/.julia/artifacts
84-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/docs/Project.toml') }}
85-
restore-keys: |
86-
${{ runner.os }}-test-${{ env.cache-name }}-
87-
${{ runner.os }}-test-
88-
${{ runner.os }}-
75+
- uses: julia-actions/cache@v1
8976
- uses: julia-actions/julia-buildpkg@v1
9077
- uses: julia-actions/julia-docdeploy@releases/v1
9178
env:

0 commit comments

Comments
 (0)