0.11.0 #3889
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: Builds | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: {} | |
jobs: | |
ubuntu-22-04: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: php scripts/compile.php clang | |
- run: php scripts/link_pluto.php clang | |
- run: src/pluto testes/_driver.pluto | |
- run: src/pluto testes/bench/_stdlib.pluto | |
ubuntu-20-04: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: php scripts/compile.php clang | |
- run: php scripts/link_pluto.php clang | |
- run: src/pluto testes/_driver.pluto | |
- run: src/pluto testes/bench/_stdlib.pluto | |
debian-10: | |
runs-on: [debian-10] | |
steps: | |
- uses: actions/checkout@v4 | |
- run: php scripts/compile.php clang | |
- run: php scripts/link_pluto.php clang | |
- run: php scripts/link_plutoc.php clang | |
- run: php scripts/link_shared.php clang | |
- run: php scripts/link_static.php | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "Linux (X64)" | |
path: | | |
src/pluto | |
src/plutoc | |
src/libpluto.so | |
src/libpluto.a | |
- run: src/pluto testes/_driver.pluto | |
- run: src/pluto testes/bench/_stdlib.pluto | |
- run: php scripts/bundle_deb.php | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "Linux (X64) - .deb Package" | |
path: pluto.deb | |
macos: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: php scripts/compile.php clang | |
- run: php scripts/link_pluto.php clang | |
- run: php scripts/link_plutoc.php clang | |
- run: php scripts/link_shared.php clang | |
- run: php scripts/link_static.php | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "MacOS (X64)" | |
path: | | |
src/pluto | |
src/plutoc | |
src/pluto.dylib | |
src/libpluto.a | |
- run: src/pluto testes/_driver.pluto | |
- run: src/pluto testes/bench/_stdlib.pluto | |
windows: | |
runs-on: windows-latest | |
steps: | |
- name: Ensure LLVM is up-to-date | |
run: choco upgrade llvm | |
- uses: actions/checkout@v4 | |
- run: php scripts/compile.php clang | |
- run: php scripts/link_pluto.php clang | |
- run: php scripts/link_plutoc.php clang | |
- run: php scripts/link_static.php | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "Windows (X64)" | |
path: | | |
src/pluto.exe | |
src/plutoc.exe | |
src/libpluto.a | |
- run: src/pluto.exe testes/_driver.pluto | |
- run: src/pluto testes/bench/_stdlib.pluto | |
- run: php scripts/bundle_nupkg.php | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "Windows (X64) Chocolatey Package" | |
path: plutolang/*.nupkg | |
windows-dll: | |
runs-on: windows-latest | |
steps: | |
- name: Ensure LLVM is up-to-date | |
run: choco upgrade llvm | |
- uses: actions/checkout@v4 | |
- run: php scripts/make_dll.php clang | |
- name: Ensure files exist | |
uses: andstor/file-existence-action@v3 | |
with: | |
files: "src/pluto.dll, src/pluto.lib, src/pluto.exp" | |
fail: true | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "Windows (X64) DLL" | |
path: | | |
src/pluto.dll | |
src/pluto.lib | |
src/pluto.exp | |
makefile: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: make -j PLAT=linux | |
wasm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: mymindstorm/setup-emsdk@v13 | |
- uses: actions/checkout@v4 | |
- run: php scripts/wasm.php | |
- name: Ensure files exist | |
uses: andstor/file-existence-action@v3 | |
with: | |
files: "pluto.js, pluto.wasm, libpluto.js, libpluto.wasm" | |
fail: true | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: WASM | |
path: | | |
pluto.js | |
pluto.wasm | |
libpluto.js | |
libpluto.wasm |