Enable build on Github runners
This commit is contained in:
parent
57b5e5cce8
commit
0c5c45be0f
59
.github/workflows/ci.yml
vendored
59
.github/workflows/ci.yml
vendored
@ -2,6 +2,9 @@ name: CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * *"
|
- cron: "0 0 * * *"
|
||||||
concurrency:
|
concurrency:
|
||||||
@ -22,17 +25,45 @@ jobs:
|
|||||||
version: master
|
version: master
|
||||||
- name: Test
|
- 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
|
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
|
||||||
# macos_m1:
|
macos_m1:
|
||||||
# runs-on: macos-14
|
runs-on: macos-14
|
||||||
# timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
# steps:
|
steps:
|
||||||
# - name: Checkout
|
- name: Checkout
|
||||||
# uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
# - name: Set up Zig
|
- name: Set up Zig
|
||||||
# uses: davidgm94/setup-zig@foo
|
uses: davidgm94/setup-zig@foo
|
||||||
# with:
|
with:
|
||||||
# version: master
|
version: master
|
||||||
# - name: Test zig
|
- name: Test zig
|
||||||
# run: zig version
|
run: zig version
|
||||||
# - name: Test macos
|
- name: Test macos
|
||||||
# run: zig build test -Dthird_party_ci=true -Dtarget=aarch64-macos-none -Dcpu=apple_m1
|
run: zig build -Dthird_party_ci=true -Dtarget=aarch64-macos-none -Dcpu=apple_m1
|
||||||
|
linux_x86_64_v3:
|
||||||
|
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 zig
|
||||||
|
run: zig version
|
||||||
|
- name: Test macos
|
||||||
|
run: zig build -Dthird_party_ci=true -Dtarget=x86_64-linux-musl -Dcpu=x86_64_v3
|
||||||
|
windows_x86_64_v3:
|
||||||
|
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 zig
|
||||||
|
run: zig version
|
||||||
|
- name: Test macos
|
||||||
|
run: zig build -Dthird_party_ci=true -Dtarget=x86_64-windows-gnu -Dcpu=x86_64_v3
|
||||||
|
63
.github/workflows/ci_main.yml
vendored
63
.github/workflows/ci_main.yml
vendored
@ -1,63 +0,0 @@
|
|||||||
name: CI_main
|
|
||||||
|
|
||||||
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
|
|
Loading…
x
Reference in New Issue
Block a user