Skip to content

Commit 1595164

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 1595164

File tree

4 files changed

+70
-26
lines changed

4 files changed

+70
-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: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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+
shell: bin/bash
28+
setup: |
29+
echo "This setup script is $0"
30+
echo ${SCRIPT_NAME}
31+
echo $(readlink -f ${BASH_SOURCE[0]})
32+
# FIXME
33+
run: |
34+
ls -al
35+
36+
# apt-get update -y
37+
# apt-get install -y --no-install-recommends wget ca-certificates
38+
# case "${{ matrix.julia-version }}" in
39+
# "1.0" )
40+
# wget -nv https://julialang-s3.julialang.org/bin/linux/aarch64/1.0/julia-1.0.5-linux-aarch64.tar.gz
41+
# ;;
42+
# "1" )
43+
# wget -nv https://julialang-s3.julialang.org/bin/linux/aarch64/1.5/julia-1.5.3-linux-aarch64.tar.gz
44+
# ;;
45+
# "nightly" )
46+
# wget -nv https://julialangnightlies-s3.julialang.org/bin/linux/aarch64/julia-latest-linuxaarch64.tar.gz
47+
# ;;
48+
# esac
49+
# tar -xzf julia-*aarch64.tar.gz
50+
# ln julia-*/bin/julia /usr/local/bin/julia
51+
# julia -e 'using InteractiveUtils; versioninfo();'
52+
# julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.build(); Pkg.test(coverage=true)'
53+
## julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit_local(process_folder())'
54+
- uses: julia-actions/julia-processcoverage@v1
55+
- uses: codecov/codecov-action@v1
56+
with:
57+
file: lcov.info

.travis.yml

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

0 commit comments

Comments
 (0)