Skip to content

Commit

Permalink
ci: 👷 初步新增GitHub CI,完善Julia兼容(1.5+)
Browse files Browse the repository at this point in the history
  • Loading branch information
ARCJ137442 committed Feb 4, 2024
1 parent 45d3af6 commit f7b32e7
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: CI

on:
- push
- pull_request

env:
JULIA_NUM_THREADS: auto

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
# Versions below 1.5 cause of compat@`include`:
- "1.5"
- "1.6"
- "1.7"
- "1.8"
- "1.9"
- "1" # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
- "nightly"
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
# - 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
# continue-on-error: ${{ matrix.version == 'nightly' }}
# - uses: julia-actions/julia-processcoverage@v1
# - name: Upload datas to Codecov
# uses: codecov/codecov-action@v1
# with:
# file: lcov.info
3 changes: 3 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
julia = "1.5"

[targets]
test = ["Test", "Dates"]

0 comments on commit f7b32e7

Please sign in to comment.