Skip to content

Commit 8a87aa3

Browse files
committed
move move
1 parent 0fcbeee commit 8a87aa3

File tree

2 files changed

+32
-19
lines changed

2 files changed

+32
-19
lines changed

.github/jobs/baseinstall.sh

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,23 @@ section_end
2424

2525
section_start "Install domserver"
2626
make configure
27-
./configure \
28-
--with-baseurl='https://localhost/domjudge/' \
29-
--with-domjudge-user=root \
30-
--enable-doc-build=no \
31-
--enable-judgehost-build=no | tee "$ARTIFACTS"/configure.txt
32-
33-
make domserver
34-
make install-domserver
27+
if [ "$version" = "all" ]; then
28+
./configure \
29+
--with-baseurl='https://localhost/domjudge/' \
30+
--with-domjudge-user=domjudge \
31+
--with-judgehost-chrootdir=${DIR}/chroot/domjudge | tee "$ARTIFACTS"/configure.txt
32+
make build-scripts domserver judgehost docs
33+
make install-domserver install-judgehost install-docs
34+
else
35+
./configure \
36+
--with-baseurl='https://localhost/domjudge/' \
37+
--with-domjudge-user=root \
38+
--enable-doc-build=no \
39+
--enable-judgehost-build=no | tee "$ARTIFACTS"/configure.txt
40+
make domserver
41+
make install-domserver
42+
fi
43+
3544
section_end
3645

3746
section_start "SQL settings"
@@ -116,6 +125,10 @@ elif [ "$version" = "balloon" ]; then
116125
elif [ "$version" = "admin" ]; then
117126
# Add admin to admin user
118127
mysql_root "INSERT INTO userrole (userid, roleid) VALUES (1, 1);" domjudge
128+
elif [ "$version" = "all" ]; then
129+
mysql_root "INSERT INTO userrole (userid, roleid) VALUES (1, 1);" domjudge
130+
mysql_root "INSERT INTO userrole (userid, roleid) VALUES (1, 3);" domjudge
131+
mysql_root "UPDATE user SET teamid = 1 WHERE userid = 1;" domjudge
119132
fi
120133
section_end
121134

.github/workflows/integration.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ jobs:
3131
- uses: actions/checkout@v4
3232
- name: info
3333
run: cat /proc/cmdline && echo && cat /proc/mounts && echo && ls -al /sys/fs/cgroup && echo && uname -a && echo && stat -fc %T /sys/fs/cgroup && echo && cat /proc/self/cgroup
34-
- name: Run composer
35-
working-directory: webapp
36-
run: composer install --no-scripts
37-
- name: Create the configure file
38-
run: make configure
39-
- name: Do the default configure
40-
run: ./configure --with-baseurl='http://localhost/domjudge/' --with-domjudge-user=domjudge --with-judgehost_chrootdir=${DIR}/chroot/domjudge
41-
- name: Build everything
42-
run: make build-scripts domserver judgehost docs
43-
- name: Install everything
44-
run: sudo make install-domserver install-judgehost install-docs
34+
- name: Install DOMjudge
35+
run: .github/jobs/baseinstall.sh all
4536
- name: Set up chroot
4637
run: sudo misc-tools/dj_make_chroot -a amd64
38+
- name: Testing submit client
39+
working-directory: submit
40+
run: make check-full
41+
- name: Configure judgehost
42+
run: sudo cp /opt/domjudge/judgehost/etc/sudoers-domjudge /etc/sudoers.d/ && sudo chmod 400 /etc/sudoers.d/sudoers-domjudge
43+
- name: Create user
44+
run: sudo userdel -f -r domjudge-run-0 && sudo useradd -d /nonexistent -g nogroup -s /bin/false -u 2222 domjudge-run-0
45+
- name: Start judging
46+
run: sudo systemctl enable --now domjudge-judgehost

0 commit comments

Comments
 (0)