@@ -2,27 +2,48 @@ name: Build workflow
2
2
run-name : Build workflow
3
3
on :
4
4
pull_request :
5
+
5
6
concurrency :
6
7
group : ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.run_id }}
7
8
cancel-in-progress : true
8
9
jobs :
9
10
build :
10
- runs-on : ubuntu-latest
11
+ runs-on : github-hosted-binary01-arm64 # Maybe here is a blocker
12
+ container :
13
+ image : debian:bookworm
14
+ defaults :
15
+ run :
16
+ shell : bash -le {0}
17
+ env :
18
+ BRANCH : ${{ github.ref_name }}
11
19
steps :
12
- - name : Set up QEMU
13
- uses : docker/setup-qemu-action@v3
14
- with :
15
- platforms : arm64
20
+ - name : prepare
21
+
22
+ run : |
23
+ apt-get update
24
+ apt-get -y dist-upgrade
25
+ apt-get -y install locales build-essential gettext libpq5 libpq-dev make gcc git openssh-client curl wget sudo lsb-release socat redis-server cmake
26
+ echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
27
+ locale-gen
28
+ if [[ ! $BRANCH =~ perl-[0-9]+\.[0-9]+\.[0-9]+ ]]; then
29
+ echo "Error: Branch name must be perl-<version>"
30
+ exit 1
31
+ fi
32
+ VERSION=$(echo $BRANCH | sed -e 's/.*perl-\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/')
16
33
34
+ echo "VERSION=$VERSION" | tee -a $GITHUB_ENV
35
+ git config --global user.email "[email protected] "
36
+ git config --global user.name "ci bot"
37
+ git config --global --add safe.directory $PWD # ignore ownership problem
17
38
- name : Checkout
18
39
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
19
-
20
- - name : Run in ARM64 container
40
+ - name : compile
21
41
run : |
22
- cd /home/git/binary-com/perl/
23
- git commit --allow-empty -am"test dummy"
24
- git remote add dev [email protected] :qiangliu-deriv/perl.git
25
- git push dev HEAD:testlq
26
- git push origin HEAD:testlq
27
-
28
-
42
+ bash ./rebuild.sh
43
+ - name : push
44
+ run : |
45
+ rm -rf lib bin man
46
+ mv /home/git/binary-com/perl/{bin,lib} .
47
+ git add lib bin
48
+ git commit -m "[ci skip] compile $VERSION"
49
+ git push origin HEAD:test_$BRANCH
0 commit comments