Skip to content

Commit f487075

Browse files
test github-hosted-binary01-arm64
1 parent f11418c commit f487075

File tree

1 file changed

+35
-14
lines changed

1 file changed

+35
-14
lines changed

.github/workflows/build_workflow.yml

Lines changed: 35 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,48 @@ name: Build workflow
22
run-name: Build workflow
33
on:
44
pull_request:
5+
56
concurrency:
67
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.run_id }}
78
cancel-in-progress: true
89
jobs:
910
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 }}
1119
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/')
1633
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
1738
- name: Checkout
1839
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4
19-
20-
- name: Run in ARM64 container
40+
- name: compile
2141
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

Comments
 (0)