From 6fa94a9468e3d68994f2e03f50e1a5815dd38329 Mon Sep 17 00:00:00 2001 From: skyleaworlder <870033938@qq.com> Date: Sun, 7 May 2023 04:53:42 +0000 Subject: [PATCH] fix: try another approach; split nightly to a new workflow --- .github/workflows/ci.yml | 8 ------ .github/workflows/nightly-ci.yml | 42 ++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/nightly-ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 386cfbf0fe..fe97c0e1c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,6 @@ jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} - continue-on-error: ${{ matrix.allow_failure }} strategy: fail-fast: false matrix: @@ -22,20 +21,13 @@ jobs: - '1' os: [ubuntu-latest] arch: [x64] - allow_failure: [false] include: - - os: ubuntu-latest - version: 'nightly' - arch: x64 - allow_failure: true - os: windows-latest version: '1' arch: x64 - allow_failure: false - os: macOS-latest version: '1' arch: x64 - allow_failure: false steps: - uses: actions/checkout@v3 - uses: julia-actions/setup-julia@v1 diff --git a/.github/workflows/nightly-ci.yml b/.github/workflows/nightly-ci.yml new file mode 100644 index 0000000000..1996dae22b --- /dev/null +++ b/.github/workflows/nightly-ci.yml @@ -0,0 +1,42 @@ +name: Nightly CI + +on: + pull_request: + branches: + - master + push: + branches: + - master + tags: '*' + +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: [nightly] + os: [ubuntu-latest] + arch: [x64] + steps: + - uses: actions/checkout@v3 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - uses: actions/cache@v3 + 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@v1 + - name: "Run test without coverage report" + uses: julia-actions/julia-runtest@v1 + with: + coverage: false