Build on ARM #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: ubuntu_latest | |
- arch: armv7 | |
distro: ubuntu_latest | |
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 update | |
apt -y install fpc | |
# ubuntu 22.04 is the last with libtiff5, newer have libtiff6 | |
#apt -y install libtiff6 | |
apt -y install libtiff-dev | |
run: | | |
echo "FPC:" $(fpc -iWTPTO) | |
echo "OS:" $(uname -a) | |
./Scripts/compile.sh | |
cd Bin | |
./runtests.sh | |
- 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 | |