summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-08-21 22:51:22 +0800
committerruki <[email protected]>2024-08-21 22:51:22 +0800
commitae610f76b096fa4d3644b5d64ecd02dafdace375 (patch)
tree207298211c46ed1e3946703748ddc1ebd2698e6d
parent0f19ea21f9c9d3f94ace3f8a836deeb63affdad7 (diff)
add cosmocc ci
-rw-r--r--.github/workflows/cosmocc.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/cosmocc.yml b/.github/workflows/cosmocc.yml
new file mode 100644
index 000000000..bc0d41f45
--- /dev/null
+++ b/.github/workflows/cosmocc.yml
@@ -0,0 +1,44 @@
+name: Cosmocc (x86_64)
+
+on:
+ pull_request:
+ push:
+ release:
+ types: [published]
+
+jobs:
+ build:
+
+ strategy:
+ matrix:
+ os: [macos-12]
+ arch: [x86_64]
+
+ runs-on: ${{ matrix.os }}
+
+ concurrency:
+ group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Cosmocc-${{ matrix.arch }}
+ cancel-in-progress: true
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ submodules: true
+ - name: Prepare local xmake
+ run: cp -rf . ../xmake-source
+ - uses: xmake-io/github-action-setup-xmake@v1
+ with:
+ xmake-version: local#../xmake-source
+
+ - name: Build
+ run: |
+ cd core
+ xmake f -p linux --cosmocc=y -y -cvD
+ xmake -v
+ cd ..
+
+ - name: Tests
+ run: |
+ source scripts/srcenv.profile
+ xmake lua -v -D tests/run.lua
+ xrepo --version
+