-
-
Notifications
You must be signed in to change notification settings - Fork 26
65 lines (53 loc) · 1.54 KB
/
build-on-arm.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build on ARM
on:
# on each push and manual trigger
push:
branches: [ master ]
paths-ignore: [ "**/Readme.md" ]
workflow_dispatch:
jobs:
build_job:
runs-on: ubuntu-latest
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}
strategy:
matrix:
include:
- arch: aarch64
distro: ubuntu22.04
- arch: armv7
distro: ubuntu22.04
steps:
- uses: actions/checkout@v4
- uses: uraimo/run-on-arch-action@v2
name: Build binaries
id: build
with:
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}
githubToken: ${{ github.token }}
install: |
echo "OS:" $(uname -a)
apt-get update
apt-get -y install fpc
apt-get -y install libtiff5
run: |
echo "FPC:" $(fpc -iWTPTO)
echo "OS:" $(uname -a)
./Scripts/compile.sh
cd Bin
./runtests.sh --no-tiff
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
name: deskew-binaries-${{ matrix.arch }}-${{ matrix.distro }}
path: |
Bin/deskew*
if-no-files-found: error
- name: Upload artifacts
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
name: deskew-artifacts-${{ matrix.arch }}-${{ matrix.distro }}
path: |
Bin
if-no-files-found: error