Skip to content

Commit c056ccb

Browse files
BorysTheDevromange
authored andcommitted
chore: update release build for arm (#4519)
fix: release build for arm
1 parent 8c5da44 commit c056ccb

File tree

1 file changed

+10
-45
lines changed

1 file changed

+10
-45
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -24,60 +24,25 @@ jobs:
2424
draft: true
2525
token: ${{ secrets.GITHUB_TOKEN }}
2626

27-
build-qemu:
28-
runs-on: ubuntu-latest
29-
name: Build aarch64 on ubuntu20.04
27+
build-arm:
28+
runs-on: ubuntu-24.04-arm
29+
name: Build arm64 on ubuntu-24.04-arm
3030
needs: create-release
31+
container:
32+
image: ghcr.io/romange/ubuntu-dev:20
33+
options: --security-opt seccomp=unconfined --sysctl "net.ipv6.conf.all.disable_ipv6=0"
3134
steps:
3235
- uses: actions/checkout@v4
3336
with:
3437
submodules: true
35-
- uses: uraimo/run-on-arch-action@v2
36-
name: Run commands
37-
id: runcmd
38-
with:
39-
arch: aarch64
40-
distro: ubuntu20.04
41-
githubToken: ${{ github.token }}
42-
# Create an artifacts directory
43-
setup: |
44-
mkdir -p "${PWD}/artifacts"
45-
46-
# Mount the artifacts directory as /artifacts in the container
47-
dockerRunArgs: |
48-
--volume "${{ github.workspace }}:/src"
49-
50-
# The shell to run commands with in the container
51-
shell: /bin/bash
52-
install: |
53-
export DEBIAN_FRONTEND=noninteractive
54-
apt update && apt install -q -y autoconf-archive cmake curl git libssl-dev \
55-
libunwind-dev ninja-build libtool gcc-9 g++-9 libboost-context-dev \
56-
zip libzstd-dev debhelper moreutils bison zlib1g-dev
57-
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 40 \
58-
--slave /usr/bin/g++ g++ /usr/bin/g++-9
59-
run: |
38+
- name: Build artifacts
39+
run: |
6040
# Work around https://github.com/actions/checkout/issues/766
61-
git config --global --add safe.directory /src
62-
cd /src
41+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
6342
git describe --always --tags ${{ github.sha }}
64-
65-
if [ -d ${{ env.RELEASE_DIR }} ]; then
66-
chown -R root ${{ env.RELEASE_DIR }}
67-
ls -l ./${{ env.RELEASE_DIR }}
68-
for i in `ls -d ./${{ env.RELEASE_DIR }}/_deps/*-src`; do
69-
git config --global --add safe.directory $(realpath $i)
70-
done
71-
fi
7243
./tools/release.sh
7344
./tools/packaging/generate_debian_package.sh ${{ env.RELEASE_DIR }}/dragonfly-aarch64
7445
mv dragonfly_*.deb ${{ env.RELEASE_DIR }}/
75-
- name: Show the artifact
76-
# Items placed in /src/${{ env.RELEASE_DIR }} in the container will be in
77-
# ${PWD}/${{ env.RELEASE_DIR }} on the host.
78-
run: |
79-
echo finished
80-
ls -al
8146
- name: Upload
8247
uses: actions/upload-artifact@v4
8348
with:
@@ -150,7 +115,7 @@ jobs:
150115
path: results-artifacts/*
151116
publish_release:
152117
runs-on: ubuntu-latest
153-
needs: [build-native, build-qemu]
118+
needs: [build-native, build-arm]
154119
steps:
155120
- uses: actions/download-artifact@v4
156121
name: Download files

0 commit comments

Comments
 (0)