From 2562363e20d49c7604ef3b110146d3bf25bfc5a4 Mon Sep 17 00:00:00 2001 From: paku Date: Sun, 12 Jan 2025 01:27:21 +0900 Subject: [PATCH] Improve CI workflow --- .forgejo/workflows/CI.yml | 30 +----------------------------- .github/workflows/CI.yml | 23 +++++++++++++---------- 2 files changed, 14 insertions(+), 39 deletions(-) diff --git a/.forgejo/workflows/CI.yml b/.forgejo/workflows/CI.yml index aba6751..6b4a105 100644 --- a/.forgejo/workflows/CI.yml +++ b/.forgejo/workflows/CI.yml @@ -17,22 +17,8 @@ jobs: steps: - uses: actions/checkout@v4 - - - name: Restore cache - id: restore-cache - uses: actions/cache/restore@v4 - with: - path: | - /usr/local/bin/ros - /usr/local/etc/roswell/ - ~/.roswell - ~/.config/common-lisp/source-registry.conf.d - ~/lisp - .qlot/ - key: roswell-${{ runner.os }}-${{ matrix.lisp }}-${{ hashFiles('qlfile.lock') }} - name: Install dependencies - if: steps.restore-cache.outputs.cache-hit != 'true' env: LISP: ${{ matrix.lisp }} run: | @@ -41,19 +27,5 @@ jobs: PATH="~/.roswell/bin:$PATH" qlot install - - name: Save cache - id: save-cache - uses: actions/cache/save@v4 - if: steps.restore-cache.outputs.cache-hit != 'true' - with: - path: | - /usr/local/bin/ros - /usr/local/etc/roswell/ - ~/.roswell - ~/.config/common-lisp/source-registry.conf.d - ~/lisp - .qlot/ - key: ${{ steps.restore-cache.outputs.cache-primary-key }} - - name: Run tests - run: .qlot/bin/rove lack-mw.asd \ No newline at end of file + run: .qlot/bin/rove lack-mw.asd diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 0d608b0..293cd8a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -7,7 +7,7 @@ on: pull_request: jobs: - tests: + test: runs-on: ubuntu-latest strategy: @@ -15,14 +15,17 @@ jobs: lisp: - sbcl-bin - env: - LISP: ${{ matrix.lisp }} - steps: - uses: actions/checkout@v4 - - uses: 40ants/setup-lisp@v4 - with: - asdf-system: lack-mw - - uses: 40ants/run-tests@v2 - with: - asdf-system: lack-mw + + - name: Install dependencies + env: + LISP: ${{ matrix.lisp }} + run: | + curl -L https://raw.githubusercontent.com/roswell/roswell/master/scripts/install-for-ci.sh | sh + ros install fukamachi/qlot + PATH="~/.roswell/bin:$PATH" + qlot install + + - name: Run tests + run: .qlot/bin/rove lack-mw.asd