-
Notifications
You must be signed in to change notification settings - Fork 256
46 lines (45 loc) · 1.16 KB
/
chroot-checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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.1
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
pwd
- uses: actions/checkout@v3
- name: Setup domjudge
run: |
make configure
./configure --with-baseurl='http://localhost/domjudge/' --with-domjudge-user=domjudge
make judgehost
sudo make install-judgehost
- name: Run chroot content tests
working-directory: misc-tools
run: |
cp ../submit/assert.bash ./
cp ../.github/jobs/chroot.bats ./
sudo ./dj_make_chroot
ls -atrl /chroot
ls -atrl /chroot/domjudge
sudo rm -rf /chroot
sudo bats ./chroot.bats