Improve switch time complexity for constant cases #3551
Workflow file for this run
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 | |
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 | |
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: "Debian 10 and above" | |
path: | | |
src/pluto | |
src/plutoc | |
src/libpluto.so | |
src/libpluto.a | |
- run: src/pluto testes/_driver.pluto | |
- run: php scripts/bundle_deb.php | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "Debian 10 and above - .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 (X86)" | |
path: | | |
src/pluto | |
src/plutoc | |
src/libpluto.so | |
src/libpluto.a | |
- run: src/pluto testes/_driver.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 | |
path: | | |
src/pluto.exe | |
src/plutoc.exe | |
src/libpluto.a | |
- run: src/pluto.exe testes/_driver.pluto | |
- run: php scripts/bundle_nupkg.php | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Windows 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_c.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 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 |