-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (44 loc) · 1005 Bytes
/
compile.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
name: Compile Spark
on:
workflow_dispatch:
jobs:
windows:
name: run on windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1.4.1
- name: compile
run: |
cl main.cpp /Fe:spark /std:c++latest
- name: run
run: |
spark.exe test.spark
shell: cmd
- name: upload executable
uses: actions/upload-artifact@v2
with:
name: windows
path: |
spark.exe
mac-and-ubuntu:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
name: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- name: compile
run: |
g++ -std=c++17 main.cpp -o spark
- name: run
run: |
./spark test.spark
shell: bash
- name: upload executable
uses: actions/upload-artifact@v2
with:
name: ${{matrix.os}}
path: |
spark