[CI] splitting CIs between backends
Mirror Gitea refs to GitHub / mirror (push) Successful in 10s
Docs and IR / build (push) Failing after 39s
Build and Test / build (push) Successful in 1m40s
Build and Test / build (push) Successful in 2m23s
Build and Test / build (push) Successful in 4m5s

This commit is contained in:
2026-09-05 14:33:18 +02:00
parent 81e3f0fbca
commit 9bb802e920
5 changed files with 89 additions and 67 deletions
@@ -1,4 +1,4 @@
name: Build
name: Docs and IR
on:
push:
@@ -18,40 +18,6 @@ jobs:
- uses: https://codeberg.org/mlugg/setup-zig@v2
- name: Install MPSS
run: |
set -euxo pipefail
apt update
apt install -y unzip curl
MPSS_URL="https://drive.kbz8.me/dav/public-files/KSKeiOKxnFPyfws/mpss.zip"
MPSS_ZIP="/tmp/mpss.zip"
MPSS_BIN="/opt/mpss/3.8.6/sysroots/k1om-mpss-linux/bin"
curl --fail --location --show-error --progress-bar "$MPSS_URL" -o "$MPSS_ZIP"
size="$(stat -c%s "$MPSS_ZIP")"
test "$size" -gt 300000000
unzip -t "$MPSS_ZIP" >/dev/null
rm -rf /opt/mpss
unzip -q "$MPSS_ZIP" -d /opt
chmod -R a+rX /opt/mpss
test -d "$MPSS_BIN"
# Append as fallback for following CI steps.
echo "PATH=$PATH:$MPSS_BIN" >> "$GITHUB_ENV"
echo "MPSS installed."
- name: Check MPSS PATH
run: |
echo "$PATH"
ls -la /opt/mpss/3.8.6/sysroots/k1om-mpss-linux/bin | head -50
- name: Check formatting
run: zig fmt --check src/
@@ -60,17 +26,8 @@ jobs:
curl -fsSL https://raw.githubusercontent.com/DonIsaac/zlint/refs/heads/main/tasks/install.sh | bash
zlint --deny-warnings
- name: Building Ape
run: zig build ape --release=safe
- name: Building Soft
run: zig build soft --release=safe
- name: Building Flint
run: zig build flint --release=safe
- name: Building Phi
run: zig build phi --release=safe
- name: Testing IR
run: zig build test-ir
- name: Generating docs
run: zig build docs
+34
View File
@@ -0,0 +1,34 @@
name: Build and Test
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'push' || !contains(github.event.head_commit.message, 'ci skip') }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: https://codeberg.org/mlugg/setup-zig@v2
- name: Building [debug]
run: zig build flint
- name: Building [release=fast]
run: zig build flint --release=fast
- name: Building [release=safe]
run: zig build flint --release=safe
- name: Building [release=small]
run: zig build flint --release=small
- name: Testing
run: zig build test-flint
@@ -1,4 +1,4 @@
name: Test
name: Build and Test
on:
push:
@@ -7,12 +7,15 @@ on:
branches: ["master"]
jobs:
build_and_test:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'test skip')"
if: ${{ github.event_name != 'push' || !contains(github.event.head_commit.message, 'ci skip') }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: https://codeberg.org/mlugg/setup-zig@v2
- name: Install MPSS
@@ -49,20 +52,14 @@ jobs:
echo "$PATH"
ls -la /opt/mpss/3.8.6/sysroots/k1om-mpss-linux/bin | head -50
- name: Installing dependencies
run: apt update && apt install spirv-tools
- name: Building [release=fast]
run: zig build phi --release=fast
- name: Ape Tests
run: zig build test-ape --release=safe
- name: Building [release=safe]
run: zig build phi --release=safe
- name: Soft Tests
run: zig build test-soft --release=safe
- name: Building [release=small]
run: zig build phi --release=small
- name: Flint Tests
run: zig build test-flint --release=safe
- name: Phi Tests
run: zig build test-phi --release=safe
- name: IR Tests
run: zig build test-ir --release=safe
- name: Testing
run: zig build test-phi --release=fast
+34
View File
@@ -0,0 +1,34 @@
name: Build and Test
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'push' || !contains(github.event.head_commit.message, 'ci skip') }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: https://codeberg.org/mlugg/setup-zig@v2
- name: Building [debug]
run: zig build soft
- name: Building [release=fast]
run: zig build soft --release=fast
- name: Building [release=safe]
run: zig build soft --release=safe
- name: Building [release=small]
run: zig build soft --release=small
- name: Testing
run: zig build test-soft