Merge pull request #9 from Samueru-sama/main #200
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: Automatic build | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v4 | |
- uses: goto-bus-stop/setup-zig@v2 | |
with: | |
version: 0.13.0 | |
- name: Install deps | |
run: | | |
git submodule update --recursive --init | |
./resources/install_deps.sh | |
- name: Build libaisap | |
run: | | |
./resources/build_libaisap.sh | |
- name: Build aisap-cli | |
run: | | |
./resources/build.sh | |
# TODO: Add Zig tests | |
- name: Test build | |
run: ./resources/test.sh | |
- name: Upload build | |
uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "continuous" | |
prerelease: true | |
title: "Continuous Build" | |
files: | | |
*.AppImage | |
*.shImg | |
*.zsync | |
libaisap*.a | |
libaisap*.so |