@@ -24,60 +24,25 @@ jobs:
24
24
draft : true
25
25
token : ${{ secrets.GITHUB_TOKEN }}
26
26
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
30
30
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"
31
34
steps :
32
35
- uses : actions/checkout@v4
33
36
with :
34
37
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 : |
60
40
# 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"
63
42
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
72
43
./tools/release.sh
73
44
./tools/packaging/generate_debian_package.sh ${{ env.RELEASE_DIR }}/dragonfly-aarch64
74
45
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
81
46
- name : Upload
82
47
uses : actions/upload-artifact@v4
83
48
with :
@@ -150,7 +115,7 @@ jobs:
150
115
path : results-artifacts/*
151
116
publish_release :
152
117
runs-on : ubuntu-latest
153
- needs : [build-native, build-qemu ]
118
+ needs : [build-native, build-arm ]
154
119
steps :
155
120
- uses : actions/download-artifact@v4
156
121
name : Download files
0 commit comments