aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-09-28 19:49:27 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2025-10-01 13:00:22 +0200
commit691be2f19f47c4de16c8212491875c2c643e27cc (patch)
tree45162f3a3ab76a18369c80fda0f01e322ee86bf5
parent2aa9dd44a51aafb4b23987679a86b5b896940dfb (diff)
downloadzig-691be2f19f47c4de16c8212491875c2c643e27cc.tar.gz
zig-691be2f19f47c4de16c8212491875c2c643e27cc.zip
ci: add Forgejo Actions workflow file
-rw-r--r--.forgejo/workflows/ci.yaml148
1 files changed, 148 insertions, 0 deletions
diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml
new file mode 100644
index 0000000000..e6a4b2e8b7
--- /dev/null
+++ b/.forgejo/workflows/ci.yaml
@@ -0,0 +1,148 @@
+name: ci
+on:
+ pull_request:
+ # push:
+ # branches:
+ # - master
+ workflow_dispatch:
+concurrency:
+ group: ${{ github.head_ref || github.run_id }}-${{ github.actor }}
+ cancel-in-progress: true
+permissions:
+ contents: read
+env:
+ # https://codeberg.org/forgejo/forgejo/issues/9244
+ TERM: dumb
+jobs:
+ aarch64-linux-debug:
+ runs-on: [self-hosted, aarch64-linux]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Build and Test
+ run: sh ci/aarch64-linux-debug.sh
+ timeout-minutes: 120
+ aarch64-linux-release:
+ runs-on: [self-hosted, aarch64-linux]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Build and Test
+ run: sh ci/aarch64-linux-release.sh
+ timeout-minutes: 120
+ loongarch64-linux-debug:
+ runs-on: [self-hosted, loongarch64-linux]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Build and Test
+ run: sh ci/loongarch64-linux-debug.sh
+ timeout-minutes: 180
+ loongarch64-linux-release:
+ runs-on: [self-hosted, loongarch64-linux]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Build and Test
+ run: sh ci/loongarch64-linux-release.sh
+ timeout-minutes: 180
+ riscv64-linux-debug:
+ if: github.event_name == 'push'
+ runs-on: [self-hosted, riscv64-linux]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Build and Test
+ run: sh ci/riscv64-linux-debug.sh
+ timeout-minutes: 420
+ riscv64-linux-release:
+ if: github.event_name == 'push'
+ runs-on: [self-hosted, riscv64-linux]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Build and Test
+ run: sh ci/riscv64-linux-release.sh
+ timeout-minutes: 420
+ x86_64-freebsd-debug:
+ runs-on: [self-hosted, x86_64-freebsd]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Build and Test
+ run: sh ci/x86_64-freebsd-debug.sh
+ timeout-minutes: 120
+ x86_64-freebsd-release:
+ runs-on: [self-hosted, x86_64-freebsd]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Build and Test
+ run: sh ci/x86_64-freebsd-release.sh
+ timeout-minutes: 120
+ x86_64-linux-debug:
+ runs-on: [self-hosted, x86_64-linux]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Build and Test
+ run: sh ci/x86_64-linux-debug.sh
+ timeout-minutes: 240
+ x86_64-linux-debug-llvm:
+ runs-on: [self-hosted, x86_64-linux]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Build and Test
+ run: sh ci/x86_64-linux-debug-llvm.sh
+ timeout-minutes: 420
+ x86_64-linux-release:
+ runs-on: [self-hosted, x86_64-linux]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Build and Test
+ run: sh ci/x86_64-linux-release.sh
+ timeout-minutes: 360
+ x86_64-windows-debug:
+ runs-on: [self-hosted, x86_64-windows]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Build and Test
+ run: ci/x86_64-windows-debug.ps1
+ timeout-minutes: 180
+ x86_64-windows-release:
+ runs-on: [self-hosted, x86_64-windows]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Build and Test
+ run: ci/x86_64-windows-release.ps1
+ timeout-minutes: 180