Skip to content

Commit 9035a1c

Browse files
giordanostaticfloat
authored andcommitted
Use GitHub Actions for CI
1 parent dba0485 commit 9035a1c

File tree

3 files changed

+52
-69
lines changed

3 files changed

+52
-69
lines changed

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- gh-pages # For building documentation
8+
- /^testing-.*$/ # testing branches
9+
- /^v[0-9]+\.[0-9]+\.[0-9]+$/ # version tags
10+
tags: ["*"]
11+
pull_request:
12+
13+
env:
14+
BINARYBUILDER_AUTOMATIC_APPLE: true
15+
16+
jobs:
17+
test:
18+
runs-on: [self-hosted, arctic3]
19+
strategy:
20+
fail-fast: false
21+
arch:
22+
- x64
23+
include:
24+
# Add a job that uses the privileged builder with squashfs shards
25+
- env:
26+
- BINARYBUILDER_RUNNER: privileged
27+
- BINARYBUILDER_USE_SQUASHFS: true
28+
29+
# Add a job that uses the unprivileged builder with unpacked shards
30+
- env:
31+
- BINARYBUILDER_RUNNER: unprivileged
32+
- BINARYBUILDER_USE_SQUASHFS: false
33+
34+
# Add a job that uses the docker builder with unpacked shards
35+
- env:
36+
- BINARYBUILDER_RUNNER: docker
37+
- BINARYBUILDER_USE_SQUASHFS: false
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: julia-actions/julia-buildpkg@latest
41+
# - name: Setup git user
42+
# run: |
43+
# git config --global user.name "Binary Builder"
44+
# git config --global user.email "[email protected]"
45+
- uses: julia-actions/julia-runtest@latest
46+
- uses: julia-actions/julia-uploadcodecov@latest
47+
env:
48+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.travis.yml

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

src/AutoBuild.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,9 @@ function autobuild(dir::AbstractString,
587587
kwargs...)
588588
@nospecialize
589589

590-
# If we're on CI and we're not verbose, schedule a task to output a "." every few seconds
591-
if (haskey(ENV, "TRAVIS") || haskey(ENV, "CI")) && !verbose
590+
# If we're on CI and we're not verbose, schedule a task to output a "." every few seconds.
591+
# Exclude GitHub Actions, it wouldn't time out
592+
if (haskey(ENV, "TRAVIS") || (haskey(ENV, "CI") && !haskey(ENV, "GITHUB_ACTIONS"))) && !verbose
592593
run_travis_busytask = true
593594
travis_busytask = @async begin
594595
# Don't let Travis think we're asleep...
@@ -813,7 +814,7 @@ function autobuild(dir::AbstractString,
813814
end
814815
end
815816

816-
if (haskey(ENV, "TRAVIS") || haskey(ENV, "CI")) && !verbose
817+
if (haskey(ENV, "TRAVIS") || (haskey(ENV, "CI") && !haskey(ENV, "GITHUB_ACTIONS"))) && !verbose
817818
run_travis_busytask = false
818819
wait(travis_busytask)
819820
println()

0 commit comments

Comments
 (0)