From 43c72ae4ecc24c135af7235ad86054205dd4deef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Sat, 10 Oct 2020 10:08:33 +0100 Subject: [PATCH] Run CI for Linux, macOS, and Windows on GitHub Actions --- .github/workflows/ci.yml | 51 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 3 --- 2 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e3e7925 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,51 @@ +name: CI + +on: + push: + branches: "master" + tags: ["*"] + pull_request: + +jobs: + test: + name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.julia-arch }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + julia-version: + - "1.3" + - "1.4" + - "1.5" + - "nightly" + os: + - ubuntu-latest + - macos-latest + - windows-latest + julia-arch: + - x64 + - x86 + # 32-bit Julia binaries are not available on macOS + exclude: + - os: macOS-latest + julia-arch: x86 + + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.julia-version }} + arch: ${{ matrix.julia-arch }} + - name: Cache artifacts + uses: actions/cache@v1 + env: + cache-name: cache-artifacts + with: + path: ~/.julia/artifacts + key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} + restore-keys: | + ${{ runner.os }}-test-${{ env.cache-name }}- + ${{ runner.os }}-test- + ${{ runner.os }}- + - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-runtest@latest diff --git a/.travis.yml b/.travis.yml index ae249e9..7192bb2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,7 @@ # Documentation: http://docs.travis-ci.com/user/languages/julia/ language: julia os: - - linux - freebsd - - osx - - windows julia: - 1.3 - 1.4