58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
jobs:
|
|
build_and_test:
|
|
runs-on: ubuntu-latest
|
|
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
|
|
|
|
- name: Install MPSS
|
|
run: |
|
|
set -eux
|
|
|
|
apt-get update
|
|
apt-get install -y unzip curl
|
|
|
|
curl -fsSL "https://drive.kbz8.me/dav/public-files/KSKeiOKxnFPyfws/mpss.zip" -o /tmp/mpss.zip
|
|
|
|
rm -rf /opt/mpss
|
|
unzip -q /tmp/mpss.zip -d /opt
|
|
chmod -R a+rX /opt/mpss
|
|
|
|
MPSS_BIN="/opt/mpss/3.8.6/sysroots/k1om-mpss-linux/bin"
|
|
|
|
test -d "$MPSS_BIN"
|
|
|
|
echo "$MPSS_BIN" >> "$GITHUB_PATH"
|
|
|
|
echo "MPSS installed at:"
|
|
ls -la /opt/mpss/3.8.6
|
|
echo "MPSS bin:"
|
|
ls -la "$MPSS_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: Soft Tests
|
|
run: zig build test-soft --release=safe
|
|
|
|
- name: Flint Tests
|
|
run: zig build test-flint --release=safe
|
|
|
|
- name: Phi Tests
|
|
run: zig build test-phi --release=safe
|