Also provide static & shared libs in actions #3
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: Build | |
on: push | |
jobs: | |
ubuntu-22-04: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Soup | |
run: php build_lib.php | |
- name: Build CLI | |
run: php build_cli.php | |
- name: Run ./soup test | |
run: ./CLI/soup test | |
- name: Run ./soup bench | |
run: ./CLI/soup bench | |
ubuntu-20-04: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Soup | |
run: php build_lib.php | |
- name: Build CLI | |
run: php build_cli.php | |
- name: Run ./soup test | |
run: ./CLI/soup test | |
- name: Run ./soup bench | |
run: ./CLI/soup bench | |
debian-10: | |
runs-on: [debian-10] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Soup | |
run: php build_lib.php | |
- name: Build CLI | |
run: php build_cli.php | |
- name: Run ./soup test | |
run: ./CLI/soup test | |
- name: Run ./soup bench | |
run: ./CLI/soup bench | |
- name: Upload soup | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "Debian 10 and above (X64)" | |
path: | | |
CLI/soup | |
libsoup.a | |
libsoup.so | |
arm64: | |
runs-on: [ARM64] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Soup | |
run: php build_lib.php | |
- name: Build CLI | |
run: php build_cli.php | |
- name: Run ./soup test | |
run: ./CLI/soup test | |
- name: Run ./soup bench | |
run: ./CLI/soup bench | |
- name: Upload soup | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "Debian 12 (ARM64)" | |
path: | | |
CLI/soup | |
libsoup.a | |
libsoup.so | |
macos-13: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Soup | |
run: php build_lib.php | |
- name: Build CLI | |
run: php build_cli.php | |
- name: Run ./soup test | |
run: ./CLI/soup test | |
- name: Run ./soup bench | |
run: ./CLI/soup bench | |
- name: Upload soup | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "MacOS (X64)" | |
path: | | |
CLI/soup | |
libsoup.a | |
libsoup.so | |
windows-latest: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Ensure LLVM is up-to-date | |
run: choco upgrade llvm | |
- name: Build Soup | |
run: php build_lib.php | |
- name: Build CLI | |
run: php build_cli.php | |
- name: Run ./soup test | |
run: CLI/soup.exe test | |
- name: Run ./soup bench | |
run: CLI/soup.exe bench | |
- name: Upload soup | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "Windows (X64)" | |
path: | | |
CLI/soup.exe | |
soup.lib | |
soup.dll | |
emscripten: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: mymindstorm/setup-emsdk@v13 | |
- uses: actions/checkout@v4 | |
- name: Build Soup | |
run: php wasm.php | |
- name: Ensure files exist | |
uses: andstor/file-existence-action@v3 | |
with: | |
files: "bindings/libsoup.js, bindings/libsoup.wasm" | |
fail: true | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "WASM" | |
path: | | |
bindings/libsoup.js | |
bindings/libsoup.wasm |