Files
cl-xdg-trash/.gitea/workflows/build.yaml
T
Zander671 14091e15a6
Build Clash / build (push) Failing after 16s
Workflow take 3
2026-08-10 00:12:38 -07:00

44 lines
1.3 KiB
YAML

name: Build Clash
on: push
permissions:
code: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v6
- name: Install lisp
run: |
apt-get update
apt-get install -y sbcl cl-quicklisp make
mkdir -p ~/quicklisp/
ln -s "${{ gitea.workspace }}" ~/quicklisp/local-projects
sbcl --eval '(load "/usr/share/common-lisp/source/quicklisp/quicklisp.lisp")' \
--eval '(quicklisp-quickstart:install)' \
--eval '(ql:add-to-init-file)'
--quit
- name: Build
run: |
make -C "${{ gitea.workspace }}/clash"
- name: Prepare archive
run: |
mkdir usr/
target="${PWD}/usr"
cd "${{ gitea.workspace }}/clash"
make PREFIX="${target}" install
- name: Make artifact name
id: name
run: |
short_sha="$(git rev-parse --short HEAD)"
branch="${{ github.head_ref || github.ref_name }}"
echo "name=chash-${branch}-${short_sha}" >> "$GITEA_OUTPUT"
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
path: usr/
name: clash--${{ steps.name.outputs.name }}
archive: true