-
Notifications
You must be signed in to change notification settings - Fork 111
47 lines (45 loc) · 1.63 KB
/
autobuild-static.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Autobuild-Static
on: [ push, pull_request ]
jobs:
autobuild-static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Build Environment
run: |
sudo apt install --no-install-recommends libbz2-dev liblzma-dev libpcre2-dev libz-dev liblz4-dev libzstd-dev
sudo apt install linux-libc-dev-arm64-cross g++-aarch64-linux-gnu
- name: Update autoconf
run: autoreconf -fi
- name: Configure AMD64
run: ./configure --enable-static --without-brotli || (cat config.log; exit 1)
- name: Make AMD64
run: make -k -j
- name: Set variables
id: vars
run: |
MYSHA="unknown"
MYSHA=$(git rev-parse --short ${{ github.sha }})
echo "COMMIT_SHORT_MYSHA=$MYSHA" >> $GITHUB_ENV
MYDATE=$(date +%y%m%d%H%m)
echo "COMMIT_SHORT_MYDATE=$MYDATE" >> $GITHUB_ENV
- name: Upload zip for AMD64
uses: actions/upload-artifact@v4
with:
name: ugrep_amd64_${{ env.COMMIT_SHORT_MYSHA }}_${{ env.COMMIT_SHORT_MYDATE }}.zip
path: |
bin/ug*
man/*.1
- name: Make clean
run: make clean
- name: Configure ARM64
run: ./configure --enable-static --without-brotli --build x86_64-pc-linux-gnu --host aarch64-linux-gnu || (cat config.log; exit 1)
- name: Make AMD64
run: make -k -j
- name: Upload zip for ARM64
uses: actions/upload-artifact@v4
with:
name: ugrep_arm64_${{ env.COMMIT_SHORT_MYSHA }}_${{ env.COMMIT_SHORT_MYDATE }}.zip
path: |
bin/ug*
man/*.1