adding backend agnostic IR
Test / build_and_test (push) Successful in 5m16s
Build / build (push) Successful in 6m50s

This commit is contained in:
2026-07-20 22:07:41 +02:00
parent 2375abf688
commit 9b1b223186
70 changed files with 7358 additions and 250 deletions
+21 -2
View File
@@ -2,9 +2,9 @@ name: Build
on:
push:
branches: [ "master" ]
branches: ["master"]
pull_request:
branches: [ "master" ]
branches: ["master"]
jobs:
build:
@@ -52,6 +52,9 @@ jobs:
echo "$PATH"
ls -la /opt/mpss/3.8.6/sysroots/k1om-mpss-linux/bin | head -50
- name: ZLint pass
uses: DonIsaac/zlint-action@v0.0.1
- name: Building Ape
run: zig build ape --release=safe
@@ -79,3 +82,19 @@ jobs:
local-path: "./zig-out/docs"
remote-path: "/www"
sync: full
- name: Generating IR docs
run: zig build docs-ir
- name: Deploying IR docs
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: milanmk/actions-file-deployer@master
with:
remote-protocol: sftp
remote-host: ${{ secrets.SFTP_HOST_DOCS_IR }}
remote-user: ${{ secrets.SFTP_USER_DOCS_IR }}
remote-password: ${{ secrets.SFTP_PASSWORD_DOCS_IR }}
remote-port: 6969
local-path: "./zig-out/docs-ir"
remote-path: "/www"
sync: full
+41 -35
View File
@@ -2,9 +2,9 @@ name: Test
on:
push:
branches: [ "master" ]
branches: ["master"]
pull_request:
branches: [ "master" ]
branches: ["master"]
jobs:
build_and_test:
@@ -12,51 +12,57 @@ jobs:
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'test skip')"
steps:
- uses: actions/checkout@v4
- uses: https://codeberg.org/mlugg/setup-zig@v2
- uses: actions/checkout@v4
- uses: https://codeberg.org/mlugg/setup-zig@v2
- name: Install MPSS
run: |
set -euxo pipefail
- name: Install MPSS
run: |
set -euxo pipefail
apt-get update
apt-get install -y unzip curl
apt-get update
apt-get 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"
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"
curl --fail --location --show-error --progress-bar "$MPSS_URL" -o "$MPSS_ZIP"
size="$(stat -c%s "$MPSS_ZIP")"
test "$size" -gt 300000000
size="$(stat -c%s "$MPSS_ZIP")"
test "$size" -gt 300000000
unzip -t "$MPSS_ZIP" >/dev/null
unzip -t "$MPSS_ZIP" >/dev/null
rm -rf /opt/mpss
unzip -q "$MPSS_ZIP" -d /opt
chmod -R a+rX /opt/mpss
rm -rf /opt/mpss
unzip -q "$MPSS_ZIP" -d /opt
chmod -R a+rX /opt/mpss
test -d "$MPSS_BIN"
test -d "$MPSS_BIN"
# Append as fallback for following CI steps.
echo "PATH=$PATH:$MPSS_BIN" >> "$GITHUB_ENV"
# Append as fallback for following CI steps.
echo "PATH=$PATH:$MPSS_BIN" >> "$GITHUB_ENV"
echo "MPSS installed."
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 MPSS PATH
run: |
echo "$PATH"
ls -la /opt/mpss/3.8.6/sysroots/k1om-mpss-linux/bin | head -50
- name: Ape Tests
run: zig build test-ape --release=safe
- name: Installing dependencies
run: apt update && apt install spirv-tools
- name: Soft Tests
run: zig build test-soft --release=safe
- name: Ape Tests
run: zig build test-ape --release=safe
- name: Flint Tests
run: zig build test-flint --release=safe
- name: Soft Tests
run: zig build test-soft --release=safe
- name: Phi Tests
run: zig build test-phi --release=safe
- 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