Skip to content

Commit

Permalink
Use from my branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
svetlyak40wt committed Jan 28, 2024
1 parent 64f012e commit fca7ec9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 50 deletions.
49 changes: 5 additions & 44 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,72 +15,33 @@
},
"jobs": {
"run-tests": {
"strategy": {
"fail-fast": false,
"matrix": {
"lisp": [
"sbcl-bin",
"ccl-bin",
"allegro",
"ecl",
"abcl"
]
}
},
"runs-on": "ubuntu-latest",
"env": {
"OS": "ubuntu-latest",
"QUICKLISP_DIST": "quicklisp",
"LISP": "${{ matrix.lisp }}"
"LISP": "sbcl-bin"
},
"steps": [
{
"name": "Checkout Code",
"uses": "actions/checkout@v3"
},
{
"name": "Grant All Perms to Make Cache Restoring Possible",
"run": "sudo mkdir -p /usr/local/etc/roswell\n sudo chown \"${USER}\" /usr/local/etc/roswell\n # Here the ros binary will be restored:\n sudo chown \"${USER}\" /usr/local/bin",
"shell": "bash"
},
{
"name": "Get Current Month",
"id": "current-month",
"run": "echo \"value=$(date -u \"+%Y-%m\")\" >> $GITHUB_OUTPUT",
"shell": "bash"
},
{
"name": "Cache Roswell Setup",
"id": "cache",
"uses": "actions/cache@v3",
"with": {
"path": "qlfile\nqlfile.lock\n~/.cache/common-lisp/\n~/.roswell\n/usr/local/etc/roswell\n/usr/local/bin/ros\n/usr/local/Cellar/roswell\n.qlot",
"key": "a-${{ steps.current-month.outputs.value }}-${{ env.cache-name }}-ubuntu-latest-quicklisp-${{ matrix.lisp }}-${{ hashFiles('qlfile.lock', '*.asd') }}"
}
},
{
"name": "Restore Path To Cached Files",
"run": "echo $HOME/.roswell/bin >> $GITHUB_PATH\n echo .qlot/bin >> $GITHUB_PATH",
"shell": "bash",
"if": "steps.cache.outputs.cache-hit == 'true'"
},
{
"name": "Setup Common Lisp Environment",
"uses": "40ants/setup-lisp@v3",
"uses": "40ants/setup-lisp@fix-test-ros",
"with": {
"asdf-system": "reblocks"
},
"if": "steps.cache.outputs.cache-hit != 'true'"
}
},
{
"name": "Run Tests",
"uses": "40ants/run-tests@v2",
"with": {
"asdf-system": "reblocks",
"coveralls-token": "\n${{ matrix.lisp == 'sbcl-bin' &&\n matrix.os == 'ubuntu-latest' &&\n matrix.quicklisp == 'ultralisp' &&\n secrets.github_token }}"
"coveralls-token": "${{ secrets.github_token }}"
}
}
]
}
}
}
}
12 changes: 6 additions & 6 deletions src/ci.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
:on-push-to "master"
:by-cron "0 10 * * 1"
:on-pull-request t
:cache t
;; :cache t
:jobs ((40ants-ci/jobs/run-tests:run-tests
:lisp ("sbcl-bin"
"ccl-bin"
"allegro"
"ecl"
"abcl")
;; :lisp ("sbcl-bin"
;; "ccl-bin"
;; "allegro"
;; "ecl"
;; "abcl")
:coverage t)))

(defworkflow docs
Expand Down

0 comments on commit fca7ec9

Please sign in to comment.