mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
name: "windows_exe"
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
|
|
|
|
- uses: msys2/setup-msys2@v2
|
|
with:
|
|
install: gcc make curl
|
|
|
|
- name: Show GCC
|
|
run: gcc -v
|
|
|
|
- name: Setup Lua
|
|
run: |
|
|
curl -O https://www.lua.org/ftp/lua-5.1.5.tar.gz
|
|
tar -xZf lua-5.1.5.tar.gz
|
|
cd lua-5.1.5; make PLAT=mingw
|
|
|
|
- name: Get LPeg
|
|
run: |
|
|
curl -o lpeg.tar.gz http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-1.0.2.tar.gz
|
|
tar -xZf lpeg.tar.gz
|
|
|
|
- name: Get Luafilesystem
|
|
run: |
|
|
curl -L -o luafilesystem.tar.gz https://github.com/keplerproject/luafilesystem/archive/v1_8_0.tar.gz
|
|
tar -xZf luafilesystem.tar.gz
|
|
|
|
- name: List Files
|
|
run: Get-ChildItem -Recurse
|
|
|
|
- name: Run Lua
|
|
run: lua-5.1.5/src/lua.exe -v
|
|
|
|
- name: Build
|
|
run: gcc -o moon.exe '-Ilua-5.1.5/src/' bin/binaries/moon.c lpeg-1.0.2/lpvm.c lpeg-1.0.2/lpcap.c lpeg-1.0.2/lptree.c lpeg-1.0.2/lpcode.c lpeg-1.0.2/lpprint.c
|
|
|
|
|
|
|
|
|