42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
name: Build Hero & Run tests
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- target: x86_64-unknown-linux-musl
|
|
os: ubuntu-latest
|
|
short-name: linux-i64
|
|
- target: aarch64-apple-darwin
|
|
os: macos-latest
|
|
short-name: macos-arm64
|
|
- target: x86_64-apple-darwin
|
|
os: macos-13
|
|
short-name: macos-i64
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
|
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
|
|
- run: echo "🔎 The name of your branch is ${{ github.ref_name }} and your repository is ${{ github.repository }}."
|
|
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Vlang
|
|
run: ./install_v.sh --github-actions
|
|
|
|
- name: Setup Herolib
|
|
run: ./install_herolib.vsh
|
|
|
|
- name: Build Hero
|
|
run: |
|
|
v -w -cg -gc none -d use_openssl -enable-globals cli/hero.v
|
|
|
|
- name: Do all the basic tests
|
|
run: |
|
|
./test_basic.vsh
|