-
-
Notifications
You must be signed in to change notification settings - Fork 54
87 lines (81 loc) · 2.89 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: CI
on:
push:
branches: [master, stable]
pull_request:
branches: [master, stable]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test_windows:
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 11
- name: install prereqs
run: cmd /c '.\scripts\windows\install-compiler-prereqs.bat C:\LLVM16 C:\BootstrappingValeCompiler'
- name: run vcvars and build-compiler-windows.bat
run: cmd /c '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && .\scripts\windows\build-compiler.bat C:\LLVM16 C:\BootstrappingValeCompiler --test=all scripts\VERSION'
- uses: actions/upload-artifact@v2
with:
name: Vale-Windows-0.zip
path: .\release-windows\Vale-Windows-0.zip
build_and_test_docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build docker image
run: docker build -t valec --build-arg VALE_DIR=. --file scripts/docker/Dockerfile .
- name: Create image
run: docker create --name bork -i valec
- name: Retrieve built compiler
run: docker cp bork:/Vale/release-ubuntu/Vale-Ubuntu-0.zip Vale-Ubuntu-0.zip
- uses: actions/upload-artifact@v2
with:
name: Vale-Ubuntu-0-From-Docker.zip
path: Vale-Ubuntu-0.zip
build_and_test_ubuntu:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 11
- name: install prereqs
run: ./scripts/ubuntu/install-compiler-prereqs.sh -d -j -s -l ~/LLVMForVale -b ~/BootstrappingValeCompiler
- name: build compiler
run: ./scripts/ubuntu/build-compiler.sh ~/LLVMForVale/clang+llvm-16.0.0-x86_64-linux-gnu-ubuntu-18.04 ~/BootstrappingValeCompiler --test=all ./scripts/VERSION
- name: gimme files
run: find . -print
- uses: actions/upload-artifact@v2
with:
name: Vale-Ubuntu-0.zip
path: ./release-ubuntu/Vale-Ubuntu-0.zip
build_and_test_mac:
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 11
- name: install prereqs
run: ./scripts/mac/install-compiler-prereqs.sh ~/BootstrappingValeCompiler
- name: build compiler
run: ./scripts/mac/build-compiler.sh ~/BootstrappingValeCompiler --test=all ./scripts/VERSION
- uses: actions/upload-artifact@v2
with:
name: Vale-Mac-0.zip
path: ./release-mac/Vale-Mac-0.zip