Skip to content

Commit

Permalink
Run docker builds and tests as a regular user, take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
dumol committed Oct 11, 2024
1 parent 744c40d commit 241fff6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,29 +59,36 @@ jobs:
apt --yes dist-upgrade
apt --yes install wget curl gcc make m4 patch openssh-client unzip git libtest-simple-perl xz-utils g++ dejagnu
- name: Clone repo independently
run: |
git clone https://github.com/chevah/pythia.git
cd pythia
git checkout ${GITHUB_HEAD_REF}
- name: Chevah user setup
run: |
useradd -g adm -s /bin/bash -m chevah
echo '%adm ALL=NOPASSWD: ALL' > /etc/sudoers
- uses: actions/checkout@v4

- name: Build Pythia
timeout-minutes: 30
run: |
chown -R chevah .
chown -R chevah pythia
cd pythia
su chevah -c "./build.sh build"
- name: Test Pythia
timeout-minutes: 5
run: |
cd pythia
su chevah -c "./build.sh test"
- name: Test compat
timeout-minutes: 5
env:
CODECOV_TOKEN: local
run: |
cd pythia
su chevah -c "./build.sh compat"
# Using `~/` is problematic under Docker, use `/root/`.
Expand Down

0 comments on commit 241fff6

Please sign in to comment.