@@ -5,9 +5,9 @@ name: Version Release
5
5
# tags:
6
6
# - 'v*'
7
7
#
8
-
9
- pull_request :
10
- branches : [main]
8
+ on :
9
+ pull_request :
10
+ branches : [main]
11
11
workflow_dispatch :
12
12
13
13
permissions :
28
28
token : ${{ secrets.GITHUB_TOKEN }}
29
29
30
30
build-qemu :
31
+ name : Build aarch64 on ubuntu20.04
31
32
needs : create-release
33
+ strategy :
34
+ matrix :
35
+ container : ["ubuntu-dev:20"]
36
+ runner : [[self-hosted, linux, ARM64]]
32
37
runs-on : ubuntu-latest
33
- runner : [ubuntu-22.04, [self-hosted, ARM64]]
34
38
container :
35
39
image : ghcr.io/romange/${{ matrix.container }}
36
40
@@ -50,19 +54,18 @@ jobs:
50
54
# ${{ runner.os }}-release-deps-
51
55
52
56
- name : Run commands
53
- run : |
57
+ run : |
54
58
# Work around https://github.com/actions/checkout/issues/766
55
- git config --global --add safe.directory /src
56
- cd /src
59
+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
57
60
git describe --always --tags ${{ github.sha }}
58
61
59
- if [ -d build-opt ]; then
60
- chown -R root build-opt
61
- ls -l ./build-opt
62
- for i in `ls -d ./build-opt/_deps/*-src`; do
63
- git config --global --add safe.directory $(realpath $i)
64
- done
65
- fi
62
+ # if [ -d build-opt ]; then
63
+ # chown -R root build-opt
64
+ # ls -l ./build-opt
65
+ # for i in `ls -d ./build-opt/_deps/*-src`; do
66
+ # git config --global --add safe.directory $(realpath $i)
67
+ # done
68
+ # fi
66
69
./tools/release.sh
67
70
./tools/packaging/generate_debian_package.sh build-opt/dragonfly-aarch64
68
71
mv dragonfly_*.deb build-opt/
@@ -87,44 +90,44 @@ jobs:
87
90
build-opt/dragonfly-*tar.gz
88
91
build-opt/dragonfly_*.deb
89
92
90
- build-native :
91
- runs-on : ubuntu-latest
92
- needs : create-release
93
- container :
94
- image : ghcr.io/romange/ubuntu-dev:20
95
- steps :
96
- - uses : actions/checkout@v3
97
- with :
98
- submodules : true
99
- - name : Configure
100
- run : |
101
- apt update && apt install -y debhelper moreutils pip jq
102
- - name : Build artifacts
103
- run : |
104
- # Work around https://github.com/actions/checkout/issues/766
105
- git config --global --add safe.directory "$GITHUB_WORKSPACE"
106
- git describe --always --tags ${{ github.sha }}
107
- ./tools/release.sh
108
- # once the build is over, we want to generate a Debian package
109
- ./tools/packaging/generate_debian_package.sh build-opt/dragonfly-x86_64
110
- - name : Run regression tests
111
- uses : ./.github/actions/regression-tests
112
- with :
113
- dfly-executable : dragonfly-x86_64
114
- gspace-secret : ${{ secrets.GSPACES_BOT_DF_BUILD }}
115
- run-only-on-ubuntu-latest : false
116
- build-dir-name : build-opt
117
- - name : Save artifacts
118
- run : |
119
- # place all artifacts at the same location
120
- mkdir -p results-artifacts
121
- mv build-opt/dragonfly-*tar.gz results-artifacts
122
- mv dragonfly_*.deb results-artifacts
123
- - name : Upload
124
- uses : actions/upload-artifact@v3
125
- with :
126
- name : dragonfly-amd64
127
- path : results-artifacts/*
93
+ # build-native:
94
+ # runs-on: ubuntu-latest
95
+ # needs: create-release
96
+ # container:
97
+ # image: ghcr.io/romange/ubuntu-dev:20
98
+ # steps:
99
+ # - uses: actions/checkout@v3
100
+ # with:
101
+ # submodules: true
102
+ # - name: Configure
103
+ # run: |
104
+ # apt update && apt install -y debhelper moreutils pip jq
105
+ # - name: Build artifacts
106
+ # run: |
107
+ # # Work around https://github.com/actions/checkout/issues/766
108
+ # git config --global --add safe.directory "$GITHUB_WORKSPACE"
109
+ # git describe --always --tags ${{ github.sha }}
110
+ # ./tools/release.sh
111
+ # # once the build is over, we want to generate a Debian package
112
+ # ./tools/packaging/generate_debian_package.sh build-opt/dragonfly-x86_64
113
+ # - name: Run regression tests
114
+ # uses: ./.github/actions/regression-tests
115
+ # with:
116
+ # dfly-executable: dragonfly-x86_64
117
+ # gspace-secret: ${{ secrets.GSPACES_BOT_DF_BUILD }}
118
+ # run-only-on-ubuntu-latest: false
119
+ # build-dir-name: build-opt
120
+ # - name: Save artifacts
121
+ # run: |
122
+ # # place all artifacts at the same location
123
+ # mkdir -p results-artifacts
124
+ # mv build-opt/dragonfly-*tar.gz results-artifacts
125
+ # mv dragonfly_*.deb results-artifacts
126
+ # - name: Upload
127
+ # uses: actions/upload-artifact@v3
128
+ # with:
129
+ # name: dragonfly-amd64
130
+ # path: results-artifacts/*
128
131
# publish_release:
129
132
# runs-on: ubuntu-latest
130
133
# needs: [build-native, build-qemu]
0 commit comments