Skip to content

Commit f0a9c02

Browse files
committed
create github actions
1 parent fd0cbfa commit f0a9c02

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/build.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Build
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- "master"
8+
9+
jobs:
10+
build-windows:
11+
runs-on: windows-2019
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
clean: true
16+
submodules: recursive
17+
fetch-depth: 0
18+
19+
- name: Generate build files
20+
run: |
21+
mkdir build
22+
cd build
23+
cmake -DCMAKE_BUILD_TYPE=Release ../source/compiler -A Win32 -G "Visual Studio 16 2019"
24+
cmake --build . --config Release
25+
26+
- name: Upload artifacts
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: omp-pawn-compiler-win32
30+
path: build/Release/*
31+
32+
build-linux:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v4
36+
with:
37+
clean: true
38+
submodules: recursive
39+
fetch-depth: 0
40+
41+
- name: Build using docker
42+
shell: bash
43+
run: |
44+
cd docker
45+
chmod +x ./build.sh
46+
chmod +x ./docker-entrypoint.sh
47+
./build.sh
48+
49+
- name: Upload artifacts
50+
uses: actions/upload-artifact@v4
51+
with:
52+
name: omp-pawn-compiler-linux
53+
path: |
54+
docker/build/libpawnc.so
55+
docker/build/pawncc
56+
docker/build/pawndisasm
57+
docker/build/pawnruns

0 commit comments

Comments
 (0)