Skip to content

Commit

Permalink
add aarch64 CI to GH actions
Browse files Browse the repository at this point in the history
we had a drone CI, but this was disabled and failed.
add relprep and the aarch64-m1 branch.
  • Loading branch information
rurban committed Mar 9, 2024
1 parent 99f6a24 commit 88594a5
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 9 deletions.
5 changes: 4 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ steps:
# https://docker-runner.docs.drone.io/configuration/trigger/
trigger:
branch:
- aarch64-m1
- archs
- master
- relprep

---
kind: pipeline
Expand All @@ -36,9 +38,10 @@ steps:
- apt-get install -yq --no-install-suggests --no-install-recommends
build-essential file bash gcc make autotools-dev automake autoconf libtool
libtext-diff-perl pkg-config
- build-aux/autogen.sh
- build-aux/conf-make-check.sh
trigger:
branch:
- aarch64-m1
- archs
- master
- relprep
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,23 @@ jobs:
# asset_path: ./configure.gz
# asset_name: configure.gz
# asset_content_type: application/gzip
aarch64:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: uraimo/run-on-arch-action@v2.7.1
name: Check on aarch64
id: runcmd
with:
arch: aarch64
githubToken: ${{ github.token }}
distro: ubuntu_latest
install: |
apt-get update -q -y
apt-get install -y make gcc grep bash file git libtool automake autoconf \
libtext-diff-perl pkg-config
git config --global --add safe.directory /home/runner/work/safeclib/safeclib
run: |
build-aux/autogen.sh
build-aux/conf-make-check.sh
13 changes: 7 additions & 6 deletions Dockerfile-fedora-aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ RUN sed -i '/^enabled=1$/ s/1/0/' /etc/yum.repos.d/*-modular.repo || true
RUN dnf -y --allowerasing --repo fedora install \
file gcc git make redhat-rpm-config sudo \
automake autoconf libtool perl-Text-Diff pkgconf-pkg-config strace gdb
#RUN dnf -y --repo fedora install m4 libtool perl-Text-Diff pkgconf-pkg-config strace gdb
#RUN dnf -y --repo fedora install strace gdb
#RUN dnf -y --repo fedora install m4

# Create test user and the environment
RUN useradd "${TEST_USER}"
WORKDIR "${WORK_DIR}"
COPY . .
RUN chown -R "${TEST_USER}:${TEST_USER}" "${WORK_DIR}"

# Enable sudo without password for convenience.
RUN echo "${TEST_USER} ALL = NOPASSWD: ALL" >> /etc/sudoers

WORKDIR "${WORK_DIR}"
COPY . .
RUN chown -R "${TEST_USER}:${TEST_USER}" "${WORK_DIR}"
USER "${TEST_USER}"

RUN ./configure --host=aarch64-linux-gnu --disable-shared --enable-debug
RUN make
4 changes: 2 additions & 2 deletions run-aarch64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# ./configure --host=aarch64-linux-gnu --disable-shared --enable-debug
# echo to avoid libssp
# sed -i 's,-fstack-protector-strong -fstack-clash-protection,,' Makefile */Makefile
docker build --rm -f Dockerfile-fedora-aarch64 -t aarch64 .
docker run --rm -t aarch64 $@
docker build -f Dockerfile-fedora-aarch64 -t safeclib-aarch64 .
docker run --rm -t safeclib-aarch64 -it $@

0 comments on commit 88594a5

Please sign in to comment.