-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.51 KB
/
build.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
# Used for test262.fyi
name: Build artifacts
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache nimble
id: cache-nimble
uses: actions/cache@v4
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-${{ hashFiles('*.nimble') }}
restore-keys: |
${{ runner.os }}-nimble-
- uses: jiro4989/setup-nim-action@v2
with:
nim-version: '2.2.0'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Balde
uses: docker://fedora:latest
with:
args: |
bash -c "
sudo dnf install cmake make gcc gcc-c++ gmp gmp-devel git -y &&
curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh &&
chmod +x ./init.sh &&
git config --global --add safe.directory /github/workspace &&
git clone https://github.com/simdutf/simdutf && cd simdutf && cmake . && sudo make install -j$(nproc) && cd .. &&
./init.sh --yes &&
export PATH="$HOME/.nimble/bin:$PATH" &&
nimble build --define:release --define:speed --out:./ &&
ls bin/
"
- name: Upload Build Artifact (balde)
uses: actions/upload-artifact@v4
with:
name: Balde
path: bin/balde
- name: Upload Build Artifacts (test262)
uses: actions/upload-artifact@v4
with:
name: Test262
path: bin/test262