Skip to content

Commit f852d73

Browse files
committed
ci: Add internal CI
1 parent 1e8fc08 commit f852d73

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

.github/workflows/gitlab-ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright (c) 2025 ETH Zurich and University of Bologna.
2+
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
# Author: Paul Scheffler <[email protected]>
6+
7+
name: gitlab-ci
8+
9+
on: [ push, pull_request, workflow_dispatch ]
10+
11+
jobs:
12+
13+
check:
14+
runs-on: ubuntu-latest
15+
steps:
16+
-
17+
name: Mirror and check
18+
uses: pulp-platform/pulp-actions/[email protected]
19+
# Skip on forks or pull requests from forks due to missing secrets.
20+
if: >
21+
github.repository == 'pulp-platform/croc' &&
22+
(github.event_name != 'pull_request' ||
23+
github.event.pull_request.head.repo.full_name == github.repository)
24+
with:
25+
domain: iis-git.ee.ethz.ch
26+
repo: github-mirror/croc
27+
token: ${{ secrets.GITLAB_TOKEN }}
28+
poll-count: 10800 # (10800/60=180min=3hours)

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ tmp
33
xilinx/scripts/add_sources.artyz720.tcl
44
xilinx/scripts/add_sources.genesys2.tcl
55
xilinx/scripts/add_sources.zyboz720.tcl
6+
nonfree

.gitlab-ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright (c) 2025 ETH Zurich and University of Bologna.
2+
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# Author: Paul Scheffler <[email protected]>
6+
7+
# We initialize the nonfree repo, then spawn a sub-pipeline from it
8+
9+
variables:
10+
NONFREE_REMOTE: [email protected]:pulp-restricted/croc-nonfree.git
11+
NONFREE_COMMIT: 0
12+
13+
stages:
14+
- nonfree
15+
16+
init:
17+
stage: nonfree
18+
script:
19+
- git clone ${NONFREE_REMOTE} nonfree
20+
- cd nonfree & git checkout ${NONFREE_COMMIT}
21+
artifacts:
22+
paths: [ nonfree/ci.yml ]
23+
24+
subpipe:
25+
stage: nonfree
26+
needs: [ init ]
27+
trigger:
28+
include:
29+
- artifact: nonfree/ci.yml
30+
job: init
31+
strategy: depend

0 commit comments

Comments
 (0)