Skip to content

Commit

Permalink
chore: Add CI workflow for building and testing
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarorichard committed Jun 14, 2024
1 parent e5bf6d0 commit 3d60dff
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and Test

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Clang
run: sudo apt-get install -y clang

- name: Install Xmake
run: |
curl -fsSL https://xmake.io/shget.text | bash
echo 'export PATH=$HOME/.xmake/repositories/xmake/repo/packages/x/xmake/xmake/core/xdemo/cli/cli/xmake:$PATH' >> $GITHUB_ENV
- name: Configure xmake
run: ~/.xmake/repositories/xmake/repo/packages/x/xmake/xmake/core/xdemo/cli/cli/xmake f -c --toolchain=ZennityLang_Toolchain

- name: Build project
run: ~/.xmake/repositories/xmake/repo/packages/x/xmake/xmake/core/xdemo/cli/cli/xmake

- name: Run tests
run: ./build/prompt

0 comments on commit 3d60dff

Please # to comment.