-
Notifications
You must be signed in to change notification settings - Fork 41
40 lines (40 loc) · 1.35 KB
/
ci.yaml
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
name: Continuous
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Install deps
run: |
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev libsdl1.2-dev libgc-dev libncurses5-dev jq cmake ninja-build clang libfuse2 valgrind libncurses5
- name: Check out repository code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up environment
run: |
echo "CC=clang" >> $GITHUB_ENV
echo "CXX=clang++" >> $GITHUB_ENV
echo "LD=clang++" >> $GITHUB_ENV
- name: Set up llvm
run: make STATIC_LLVM=1 prepare-llvm
- name: Compile nim
run: make STATIC_LLVM=1 prepare-nim
- name: Run tests
run: |
cat ci-skipped-tests.txt >>skipped-tests.txt
make STATIC_LLVM=1 test
- name: Run self-compare
run: make STATIC_LLVM=1 compare
- name: Create distribution
run: bash make-dist.sh
- name: Update release
if: github.ref == 'refs/heads/master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Local copy of the following script:
# wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
bash upload.sh dist/*