Skip to content

Commit

Permalink
Move the chroot-checks
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj committed Feb 18, 2024
1 parent a7591b3 commit bd8b6c8
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 18 deletions.
5 changes: 5 additions & 0 deletions gitlab/chroot.bats → .github/jobs/chroot.bats
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ fi
# Cleanup old dir
rm -rf $CHROOT

// In GHA CI we use this option to trigger all non specific architectures.
if [ "${ARCH}" = 'default_placeholder' ]; then
unset $ARCH
fi

COMMANDARGS=""
if [ -n "${ARCH+x}" ]; then
COMMANDARGS="-a $ARCH $COMMANDARGS"
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/chroot-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Check chroot creation
on:
push:
branches-ignore:
- main
- '[0-9]+.[0-9]+'
- gh-readonly-queue/main/*
- gh-readonly-queue/main/[0-9]+.[0-9]+
pull_request:
branches:
- main
- '[0-9]+.[0-9]+'

jobs:
chroot-arch:
container:
image: domjudge/gitlabci:2.
strategy:
matrix:
arch: [amd64, arm64, armhf, i386, default_value]
include:
- skip: true
runs-on: ubuntu-latest
steps:
- name: Show the info about the runner
run: |
lsb_release -a
mount
- uses: actions/checkout@v3
- name: Setup domjudge
run: |
make configure
./configure --with-baseurl='http://localhost/domjudge/' --with-domjudge-user=domjudge --with-judgehost_chrootdir=${DIR}/chroot/domjudge
make judgehost
sudo make install-judgehost
- name: Run chroot content tests
working-directory: .github/jobs/
run: |
cp ../submit/assert.bash ./
bats ./chroot.bats
1 change: 0 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ include:
- '/gitlab/ci/integration.yml'
- '/gitlab/ci/webstandard.yml'
- '/gitlab/ci/template.yml'
- '/gitlab/ci/misc.yml'

stages:
- test
Expand Down
17 changes: 0 additions & 17 deletions gitlab/ci/misc.yml

This file was deleted.

0 comments on commit bd8b6c8

Please sign in to comment.