2022-01-05 22:01:59 +03:00
|
|
|
# Runs on any push to ci-linux-arm32v7.
|
|
|
|
# Produces optimised static arm32v7 linux binaries,
|
|
|
|
# using GHC 8.10.4 and cabal.
|
|
|
|
# Currently runs no tests.
|
|
|
|
# Slow, will probably time out.
|
|
|
|
|
2021-12-10 23:40:19 +03:00
|
|
|
name: linux-arm32v7 CI binaries
|
2021-07-01 07:05:27 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-12-10 04:38:26 +03:00
|
|
|
branches: [ ci-linux-arm32v7 ]
|
2021-07-01 07:05:27 +03:00
|
|
|
#tags:
|
|
|
|
# - '[0-9]+.[0-9]+'
|
|
|
|
# - '[0-9]+.[0-9]+-*'
|
|
|
|
# - '[0-9]+.[0-9]+.[0-9]+'
|
|
|
|
# - '[0-9]+.[0-9]+.[0-9]+-*'
|
2021-07-04 03:51:17 +03:00
|
|
|
workflow_dispatch:
|
2021-07-01 07:05:27 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
-
|
|
|
|
name: Build and push
|
|
|
|
id: docker_build
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
file: ./docker-static-arm32v7/Dockerfile
|
|
|
|
platforms: linux/arm
|
2021-07-06 02:24:55 +03:00
|
|
|
tags: hledger-linux-static-arm32v7:latest
|
2021-07-01 07:05:27 +03:00
|
|
|
load: true
|
|
|
|
|
|
|
|
- name: Extract binaries from docker
|
|
|
|
run: |
|
|
|
|
# Create temporary container from it
|
2021-07-06 02:24:55 +03:00
|
|
|
container_id=$(docker create hledger-linux-static-arm32v7:latest)
|
2021-07-01 07:05:27 +03:00
|
|
|
# Copy stuff from temp container
|
2021-07-06 02:24:55 +03:00
|
|
|
docker cp $container_id:/root/hledger /tmp/hledger-linux-static-arm32v7
|
2021-07-01 07:05:27 +03:00
|
|
|
# Delete temp container
|
|
|
|
docker rm -v $container_id
|
|
|
|
|
|
|
|
- name: Upload binary
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2021-07-06 02:24:55 +03:00
|
|
|
name: hledger-linux-static-arm32v7
|
|
|
|
path: /tmp/hledger-linux-static-arm32v7
|