diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 218e8cbae..5141cfab6 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,2 +1,3 @@ +patreon: Shinmera github: Shinmera ko_fi: shinmera diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml new file mode 100644 index 000000000..bf43e77bd --- /dev/null +++ b/.github/workflows/examples.yml @@ -0,0 +1,44 @@ +name: examples +on: [workflow_dispatch] +permissions: + contents: write +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Install env + run: | + sudo apt-get -qq install sbcl + curl -o ~/quicklisp.lisp https://beta.quicklisp.org/quicklisp.lisp + sbcl --noinform --load ~/quicklisp.lisp --eval '(quicklisp-quickstart:install)' --non-interactive + sbcl --noinform + --eval '(load "/home/runner/quicklisp/setup.lisp")' \ + --eval '(ql-dist:install-dist "http://dist.shirakumo.org/shirakumo.txt" :prompt NIL)' \ + --non-interactive + - name: Restore dependencies cache + uses: actions/cache@v3 + with: + path: | + /home/runner/quicklisp + /home/runner/.cache/common-lisp + key: ${{ runner.os }} + restore-keys: ${{ runner.os }} + - uses: actions/checkout@v1 + - name: Build the library + run: | + sbcl --noinform \ + --eval '(load "/home/runner/quicklisp/setup.lisp")' \ + --eval '(ql:quickload :trial-examples)' \ + --non-interactive + - name: Build the binary + run: | + sbcl --noinform \ + --eval '(load "/home/runner/quicklisp/setup.lisp")' \ + --eval '(asdf:load-asd "/home/runner/work/wg-manager/wg-manager/wg-manager.asd")' \ + --eval '(asdf:make :trial-examples)' \ + --non-interactive + - name: Release + uses: softprops/action-gh-release@v1 + with: + append_body: true + files: trial-examples/bin/