Bullet ants have a chance to drop bullets. #1347
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: HackEM | |
on: | |
push: | |
branches: [ dev ] | |
tags: | |
- '*' # won't work on tags containing / | |
pull_request: | |
branches: [ dev ] | |
jobs: | |
linux-build: | |
runs-on: ubuntu-latest | |
env: | |
HINTS_FILE: linux-debug.gha | |
steps: | |
- uses: actions/checkout@v3 | |
- 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@v3 | |
- 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: HackEM-1.2.0.zip | |
steps: | |
- uses: actions/checkout@v3 | |
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: HackEM-1.2.0.zip | |
- name: release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
HackEM-1.2.0.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |