-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (48 loc) · 1.24 KB
/
build.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
41
42
43
44
45
46
47
48
49
name: build_all
run-name: Compile Molybdenum and Datagen
on:
push:
pull_request:
workflow_dispatch:
jobs:
build_linux:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Setup clang++ for x64
uses: egor-tensin/setup-clang@v1
with:
version: latest
platform: x64
- name: Compile Molybdenum
run: make
- name: Benchmarking
run: build/Molybdenum bench
- name: Compile Datagen
run: make datagen
build_windows:
runs-on: windows-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Setup clang++ for x64
uses: egor-tensin/setup-clang@v1
with:
version: latest
platform: x64
- name: Compile Molybdenum
run: |
make
cd build
ren Molybdenum Molybdenum.exe
- name: Benchmarking
run: build/Molybdenum bench
- name: Upload Molybdenum (Win x64)
uses: actions/upload-artifact@v4
with:
name: Molybdenum-${{ github.sha }}.exe
path: build/Molybdenum.exe
retention-days: 3
- name: Compile Datagen
run: make datagen