nativity/.github/workflows/ci_main.yml
2024-01-29 00:19:01 +01:00

64 lines
1.7 KiB
YAML

name: CI_Github_FlyCI
on:
# pull_request:
push:
branches:
- main
concurrency:
# Cancels pending runs when a PR gets updated.
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }}
cancel-in-progress: true
jobs:
self_hosted_linux:
runs-on: [ self-hosted, Linux, x64 ]
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Zig
uses: davidgm94/setup-zig@foo
with:
version: master
- name: Test
run: zig build test -Dllvm_path=../../../../../dev/llvm/llvm-static-release-zen4-17.0.6/out/x86_64-linux-musl-native -Dself_hosted_ci=true
# linux_x86_64:
# runs-on: ubuntu-latest
# timeout-minutes: 15
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Set up Zig
# uses: davidgm94/setup-zig@foo
# with:
# version: master
# - name: Test
# run: ./ci.sh -Dthird_party_ci=true -Dtarget=x86_64-linux-musl -Dcpu=x86_64_v3
# windows_x86_64:
# runs-on: windows-latest
# timeout-minutes: 15
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Set up Zig
# uses: davidgm94/setup-zig@foo
# with:
# version: master
# - name: Test
# run: zig version
# macos_m1:
# runs-on: flyci-macos-large-latest-m1
# timeout-minutes: 15
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Set up Zig
# uses: davidgm94/setup-zig@foo
# with:
# version: master
# - name: Test zig
# run: zig version
# - name: Test macos
# run: ./ci.sh -Dthird_party_ci=true -Dtarget=aarch64-macos-none -Dcpu=apple_m1