Skip to content

Commit

Permalink
Enable Github Action and run tests (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii authored Aug 1, 2024
1 parent a1c960d commit cbc6613
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflow/ci.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build on Debian bookworm
name: CI on Debian bookworm
on:
push:
branches: [ main ]
Expand All @@ -18,14 +18,17 @@ jobs:
- name: Install dependencies
run: |
DEBIAN_FRONTEND=noninteractive apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y gcc git 7zip unzip curl
DEBIAN_FRONTEND=noninteractive apt-get install -y git 7zip unzip curl build-essential
- uses: actions/checkout@v3
with:
fetch-depth: 1

- name: git add safe directory
run: git config --global --add safe.directory '*'

- name: de-gitee
run: sed -i '/gitee\.com/d' xmake/packages/s/s7/xmake.lua

- name: set XMAKE_GLOBALDIR
run: echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/xmake-global" >> $GITHUB_ENV

Expand Down Expand Up @@ -53,5 +56,9 @@ jobs:

- name: config
run: xmake config -vD --policies=build.ccache -o tmp/build -m releasedbg --yes

- name: build
run: xmake build --yes -vD goldfish

- name: run tests
run: find tests | grep "test.scm" | xargs -I% bin/goldfish %

0 comments on commit cbc6613

Please sign in to comment.