This repository has been archived by the owner on Nov 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
77 lines (65 loc) · 2.41 KB
/
WindowsWeeklyBuild.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Windows weekly build
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
jobs:
build:
runs-on: windows-2019
steps:
- name: Install cargo
uses: actions-rs/cargo@v1
with:
command: install
args: cbindgen
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.9.1
- run: |
python -m pip install --upgrade pip
pip3 install lit filecheck
- name: Set up Clang
uses: egor-tensin/setup-clang@v1
with:
platform: x64
- name: Cache LLVM Build
uses: actions/cache@v2
with:
path: llvm-cache
key: LLVM11
- name: Build LLVM
run: |
git clone https://github.com/llvm/llvm-project.git
cd llvm-project
git checkout llvmorg-11.0.1
git status
cd llvm
mkdir install
cmake -DLLVM_CCACHE_DIR=..\..\llvm-cache -DCMAKE_BUILD_TYPE=Release -Thost=x64 -G "Visual Studio 16 2019" -A x64 -DLLVM_USE_CRT_RELEASE=MT -DCMAKE_INSTALL_PREFIX=install -S . -B build\
cmake --build .\build -t install -- /p:configuration=Release
cd ..\..
- name: Install JRE 11
uses: actions/setup-java@v1
with:
java-version: '11'
java-package: jre
architecture: x64
- name: Clone nBallerina
uses: actions/checkout@v2
with:
path: nBallerina-project
- name: Build nballerinac
run: |
cmake -DLLVM_DIR="$(pwd)\llvm-project\llvm\install\lib\cmake\llvm" -S nBallerina-project -B nBallerina-project\build
cmake --build nBallerina-project\build --config Release
- name: Setup Ballerina pack
run: |
set ballerina_version=2.0.0-alpha8-20210419-135100-df7a4e3f
set ballerina_package=jballerina-tools-%ballerina_version%
curl -L https://maven.pkg.github.com/ballerina-platform/ballerina-lang/org/ballerinalang/jballerina-tools/%ballerina_version%/%ballerina_package%.zip -u "${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}" -o %ballerina_package%.zip
unzip -q %ballerina_package%.zip
echo "$(pwd)\%ballerina_package%\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Run tests
run: |
cmake --build nBallerina-project\build -t check --config Release