joinmarket update to v0.9.10 (#138) #185
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: arm64-rpi-image-build | |
on: | |
push: | |
branches: [ "master" ] | |
paths-ignore: | |
- '*.md' | |
- '.gitignore' | |
- 'images' | |
- 'ci/amd64/**' | |
- 'scripts/jam-remote' | |
- 'Makefile' | |
pull_request: | |
branches: [ "master" ] | |
paths-ignore: | |
- '*.md' | |
- '.gitignore' | |
- 'images' | |
- 'ci/amd64/**' | |
- 'scripts/jam-remote' | |
- 'Makefile' | |
workflow_dispatch: | |
jobs: | |
arm64-rpi-image-build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set values | |
run: | | |
echo "BUILD_DATE=$(date +"%Y-%m-%d")" >> $GITHUB_ENV | |
echo "BUILD_VERSION=$(git describe --always --tags)" >> $GITHUB_ENV | |
- name: Hello JoininBox | |
run: echo "Building the joininbox-arm64-rpi-image-${{ env.BUILD_DATE }}-${{ env.BUILD_VERSION }}" | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
- name: Run the build script | |
run: | | |
cd ci/arm64-rpi | |
bash arm64-rpi.sh $GITHUB_ACTOR $GITHUB_HEAD_REF | |
- name: Compute checksum of the raw image | |
run: | | |
cd ci/arm64-rpi | |
sha256sum joininbox-arm64-rpi.img > joininbox-arm64-rpi.img.sha256 | |
- name: Compress image | |
run: | | |
cd ci/arm64-rpi | |
gzip -v9 joininbox-arm64-rpi.img | |
- name: Compute checksum of the compressed image | |
run: | | |
cd ci/arm64-rpi | |
sha256sum joininbox-arm64-rpi.img.gz > joininbox-arm64-rpi.img.gz.sha256 | |
- name: Upload the image and checksums | |
uses: actions/upload-artifact@v3 | |
with: | |
name: joininbox-arm64-rpi-image-${{ env.BUILD_DATE }}-${{ env.BUILD_VERSION }} | |
path: | | |
${{ github.workspace }}/ci/arm64-rpi/joininbox-arm64-rpi.img.sha256 | |
${{ github.workspace }}/ci/arm64-rpi/joininbox-arm64-rpi.img.gz | |
${{ github.workspace }}/ci/arm64-rpi/joininbox-arm64-rpi.img.gz.sha256 |