-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (50 loc) · 1.42 KB
/
blang.yml
File metadata and controls
60 lines (50 loc) · 1.42 KB
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
name: blang
on: [push, pull_request]
jobs:
macos-build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: brew install flex bison llvm
- name: Build
run: cmake . && make
- name: Save build artifacts
uses: actions/upload-artifact@v4
with:
name: macos-out
path: ./blang
windows-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install vcpkg
run: |
git clone https://github.com/Microsoft/vcpkg.git
.\vcpkg\bootstrap-vcpkg.bat
- name: Install dependencies with vcpkg
run: |
.\vcpkg\vcpkg install llvm[tools]:x64-windows
choco install winflexbison3
- name: Build
run: |
cmake . -DCMAKE_TOOLCHAIN_FILE=.\vcpkg\scripts\buildsystems\vcpkg.cmake
cmake --build .
- name: Save build artifacts
uses: actions/upload-artifact@v4
with:
name: windows-out
path: ./blang.exe
linux-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y flex bison llvm cmake make g++ libfl-dev
- name: Build
run: cmake . && make
- name: Save build artifacts
uses: actions/upload-artifact@v4
with:
name: linux-out
path: ./bin/blang