Matheus Sampaio Queiroga
a86ce30bb3
All checks were successful
Test / test_cross (push) Successful in 8m36s
59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
name: Test
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test_cross:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install host compilers
|
|
env:
|
|
DEBIAN_FRONTEND: "noninteractive"
|
|
run: |
|
|
sudo apt update
|
|
sudo apt upgrade -y
|
|
sudo apt install -y xz-utils wget jq clang build-essential
|
|
sudo apt install -y crossbuild-essential* || apt list | grep "crossbuild-essential" | cut -d / -f 1 | xargs -i{} bash -c "sudo apt install -y {} || echo Cannot install {} package"
|
|
|
|
- uses: actions/checkout@v4
|
|
name: Checkout
|
|
|
|
- uses: actions/setup-node@v4
|
|
name: Setup Node.js
|
|
with:
|
|
node-version: latest
|
|
|
|
- name: "Setup zig"
|
|
uses: korandoru/setup-zig@v1
|
|
with:
|
|
zig-version: "0.11.0"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
npm install --no-save
|
|
cd test
|
|
npm install --no-save --ignore-scripts
|
|
|
|
- name: Print
|
|
timeout-minutes: 70
|
|
run: node --no-warnings --loader ts-node/esm src/bin/index.ts host print
|
|
|
|
- name: Test
|
|
timeout-minutes: 70
|
|
run: node --no-warnings --loader ts-node/esm src/bin/index.ts -w test build --log o -A
|
|
env:
|
|
FORCE_COLOR: "1"
|
|
|
|
- name: Upload prebuilds interface
|
|
uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
retention-days: 7
|
|
name: build
|
|
path: "test/build"
|