[CI] splitting CIs between backends
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
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: 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: Building [release=fast]
|
||||
run: zig build phi --release=fast
|
||||
|
||||
- name: Building [release=safe]
|
||||
run: zig build phi --release=safe
|
||||
|
||||
- name: Building [release=small]
|
||||
run: zig build phi --release=small
|
||||
|
||||
- name: Testing
|
||||
run: zig build test-phi --release=fast
|
||||
Reference in New Issue
Block a user