Skip to content

Commit 84679bd

Browse files
committed
Use GitHub Actions for unit testing on Arm arch.
The test runs on a docker container with QEMU. This also updates TagBot.yml.
1 parent 1e14ce6 commit 84679bd

File tree

4 files changed

+64
-26
lines changed

4 files changed

+64
-26
lines changed

.github/workflows/TagBot.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
name: TagBot
22
on:
3-
schedule:
4-
- cron: 0 * * * *
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
57
jobs:
68
TagBot:
9+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
710
runs-on: ubuntu-latest
811
steps:
912
- uses: JuliaRegistries/TagBot@v1

.github/workflows/UnitTest.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ name: Unit test
33
on:
44
create:
55
tags:
6-
push:
7-
branches:
8-
- master
9-
pull_request:
10-
schedule:
11-
- cron: '20 00 1 * *'
6+
# FIXME: temporarily commenting out
7+
#push:
8+
# branches:
9+
# - master
10+
#pull_request:
11+
#schedule:
12+
# - cron: '20 00 1 * *'
1213

1314
jobs:
1415
test:
@@ -38,7 +39,7 @@ jobs:
3839
env:
3940
cache-name: cache-artifacts
4041
with:
41-
path: ~/.julia/artifacts
42+
path: ~/.julia/artifacts
4243
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
4344
restore-keys: |
4445
${{ runner.os }}-test-${{ env.cache-name }}-
@@ -51,5 +52,3 @@ jobs:
5152
- uses: codecov/codecov-action@v1
5253
with:
5354
file: lcov.info
54-
55-

.github/workflows/UnitTestArm.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Unit test for Arm
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
workflow_dispatch:
9+
jobs:
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
julia-version: ['1.0', '1', 'nightly']
16+
os: [ubuntu-20.04]
17+
distro: [ubuntu20.04]
18+
arch: [aarch64]
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: uraimo/[email protected]
23+
name: Unit Test
24+
with:
25+
arch: ${{ matrix.arch }}
26+
distro: ${{ matrix.distro }}
27+
# FIXME
28+
install: |
29+
apt-get update -y
30+
apt-get install -y --no-install-recommends wget ca-certificates
31+
case "${{ matrix.julia-version }}" in
32+
"1.0" )
33+
wget -nv https://julialang-s3.julialang.org/bin/linux/aarch64/1.0/julia-1.0.5-linux-aarch64.tar.gz
34+
;;
35+
"1" )
36+
wget -nv https://julialang-s3.julialang.org/bin/linux/aarch64/1.5/julia-1.5.3-linux-aarch64.tar.gz
37+
;;
38+
"nightly" )
39+
wget -nv https://julialangnightlies-s3.julialang.org/bin/linux/aarch64/julia-latest-linuxaarch64.tar.gz
40+
;;
41+
esac
42+
tar -xzf julia-*aarch64.tar.gz
43+
ln julia-*/bin/julia /usr/local/bin/julia
44+
45+
run: |
46+
julia -e 'using InteractiveUtils; versioninfo();'
47+
julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.build(); Pkg.test(coverage=true)'
48+
- uses: julia-actions/julia-processcoverage@v1
49+
- uses: codecov/codecov-action@v1
50+
with:
51+
file: lcov.info

.travis.yml

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

0 commit comments

Comments
 (0)