Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
admiswalker committed Aug 12, 2024
1 parent 0192d62 commit 0a52a72
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
35 changes: 8 additions & 27 deletions .github/workflows/main_tests_on_raspberry_pi_os_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,52 +10,33 @@ jobs:
build:
runs-on: ubuntu-24.04

strategy:
fail-fast: false
matrix:
platform:
- linux/arm64
# - linux/amd64

container:
image: ghcr.io/admiswalker/raspios_full_arm64_2022-04-04_bullseye:2024-08-12-update

steps:
- name: checkout repository
uses: actions/checkout@v4

# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Install build tools
run: |
apt install -y build-essential \
coreutils \
make \
gcc \
g++ \
cmake \
python3-pip \
python3-numpy \
python3-matplotlib \
time
./docker/raspberry_pi_64/build.sh
- name: Build googletest
run: |
make ./googletest-master/build/lib/libgtest.a
./docker/raspberry_pi_64/run_args.sh make ./googletest-master/build/lib/libgtest.a
- name: Build SSTD
run: |
make FORCE_TO_MAKE_SSTD
./docker/raspberry_pi_64/run_args.sh make FORCE_TO_MAKE_SSTD
- name: Build SSTD TESTS
run: |
make FORCE_TO_MAKE_TEST_EXE
./docker/raspberry_pi_64/run_args.sh make FORCE_TO_MAKE_TEST_EXE
- name: Build the others
run: |
make
./docker/raspberry_pi_64/run_args.sh make
- name: Run tests
run: |
./exe
./docker/raspberry_pi_64/run_args.sh ./exe
19 changes: 19 additions & 0 deletions docker/raspberry_pi_64/run_args.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh
docker run \
-u `id -u`:`id -g` \
-v /etc/group:/etc/group:ro \
-v /etc/passwd:/etc/passwd:ro \
-v /etc/shadow:/etc/shadow:ro \
-v /etc/sudoers.d:/etc/sudoers.d:ro \
--rm -it --name sstd_raspberry_pi_64 \
-v $PWD:/home -w /home \
--user root \
sstd_raspberry_pi_64 ${@}
# --rm -it --name sstd_raspberry_pi_64 \
# sstd_raspberry_pi_64 /bin/sh
# sstd_raspberry_pi_64/raspios_full_arm64:2022-04-04_bullseye /bin/sh

# `--user root` is to avoid the following error:
# > $ apt install time
# > E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
# > E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

0 comments on commit 0a52a72

Please sign in to comment.