From 1277424725c8be3c61e442b1cc2e09a073acc0a6 Mon Sep 17 00:00:00 2001 From: paku Date: Sat, 11 Jan 2025 22:29:42 +0900 Subject: [PATCH] Add workflow for Forgejo actions --- .forgejo/workflows/CI.yml | 59 ++++++++++++++++++++++++++ .github/workflows/{test.yml => CI.yml} | 7 ++- 2 files changed, 62 insertions(+), 4 deletions(-) create mode 100644 .forgejo/workflows/CI.yml rename .github/workflows/{test.yml => CI.yml} (89%) diff --git a/.forgejo/workflows/CI.yml b/.forgejo/workflows/CI.yml new file mode 100644 index 0000000..cc3a524 --- /dev/null +++ b/.forgejo/workflows/CI.yml @@ -0,0 +1,59 @@ +name: 'CI' + +on: + push: + branches: + - 'master' + pull_request: + +jobs: + test: + runs-on: docker + + strategy: + matrix: + lisp: + - sbcl-bin + + 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: | + 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: 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 ningle-fbr.asd \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/CI.yml similarity index 89% rename from .github/workflows/test.yml rename to .github/workflows/CI.yml index 2c2a54a..f53e3d3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/CI.yml @@ -1,4 +1,4 @@ -name: 'test' +name: 'CI' on: push: @@ -9,13 +9,12 @@ on: jobs: tests: runs-on: ubuntu-latest - + strategy: matrix: lisp: - sbcl-bin - - ccl-bin - + env: LISP: ${{ matrix.lisp }}