-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 994 Bytes
/
release.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
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y gcc-mingw-w64 cmake make gcc bison flex
- name: Build for Linux
run: |
cmake -DCMAKE_BUILD_TYPE=Release .
make
mv ./KariLang ./KariLang-Linux-x86-64
- name: Build for Windows
run: |
x86_64-w64-mingw32-gcc -O3 \
./src/main.c \
./src/semantics.c \
./src/interpreter.c \
./src/lex.yy.c \
./src/parser.tab.c \
-o ./KariLang-Windows-x86-64.exe
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
KariLang-Windows-x86-64.exe
KariLang-Linux-x86-64