-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (49 loc) · 1.3 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
ARTIFACT_NAME: "linux-clang-16.zip"
CLANG_VERSION: 16
jobs:
check_ark:
name: ArkScript formatting check
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Format check
uses: ArkScript-lang/action-format@master
with:
folder: .
exclude: tests
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout std
uses: actions/checkout@v4
- uses: robinraju/[email protected]
with:
latest: true
preRelease: true
repository: ArkScript-lang/Ark
fileName: ${{ env.ARTIFACT_NAME }}
- name: Set up files
shell: bash
run: |
unzip $ARTIFACT_NAME
chmod u+x arkscript *.so lib/*.arkm
cp lib/*.arkm ./
- name: Update LLVM compilers
shell: bash
run: |
sudo apt-get install -y clang-${CLANG_VERSION} lld-${CLANG_VERSION} \
libc++-${CLANG_VERSION}-dev libc++abi-${CLANG_VERSION}-dev \
clang-tools-${CLANG_VERSION}
- name: Tests
shell: bash
run: |
./arkscript --version
mkdir -p std && mv *.ark std/
./arkscript tests/all.ark -L ./