-
Notifications
You must be signed in to change notification settings - Fork 22
79 lines (74 loc) · 1.86 KB
/
evilhack-cpp.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: EvilHack
on:
push:
branches: [ master ]
tags:
- '*' # won't work on tags containing /
pull_request:
branches: [ master ]
jobs:
linux-build:
runs-on: ubuntu-latest
env:
HINTS_FILE: linux-debug.gha
steps:
- uses: actions/checkout@v4
- name: setup
run: ./sys/unix/setup.sh sys/unix/hints/$HINTS_FILE
- name: make all
run: make all
- name: make install
run: make install
mac-build:
runs-on: macos-latest
env:
HINTS_FILE: macosx10.14
steps:
- uses: actions/checkout@v4
- name: setup
run: ./sys/unix/setup.sh sys/unix/hints/$HINTS_FILE
- name: make all
run: make all
- name: make install
run: make install
windows-build:
runs-on: windows-latest
env:
YACC: win_bison -y
LEX: win_flex.exe
YTABC: y.tab.c
YTABH: y.tab.h
LEXYYC: lex.yy.c
ADD_CURSES: Y
PDCURSES_TOP: ../../pdcurses
TRAVIS_COMPILER: 1
ZIP_NAME: evilhack-0.9.0.zip
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ilammy/msvc-dev-cmd@v1 # enable visual c compiler / nmake
- name: setup
run: |
choco install winflexbison
git clone --depth 1 https://github.com/wmcbrine/PDCurses.git ../pdcurses
./sys/winnt/nhsetup.bat
- name: make install
run: |
cp ./sys/winnt/Makefile.msc ./Makefile
cd src
nmake install
- uses: thedoctor0/zip-release@master
if: startsWith(github.ref, 'refs/tags/')
with:
type: 'zip'
path: binary/
filename: evilhack-0.9.0.zip
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
evilhack-0.9.0.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}