all but kernel line #13
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 OS Image | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
paths: | |
- '*' | |
- '.github/workflows/BuildSDImage.yml' | |
jobs: | |
build-default-image: | |
name: Build OS image | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/[email protected] | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v4 | |
with: | |
extra_nix_config: | | |
extra-platforms = aarch64-linux | |
- name: Run the Magic Nix Cache | |
uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- run: | | |
sudo apt -y install qemu-user-static | |
- name: Test binfmt | |
run: | | |
cat /proc/sys/fs/binfmt_misc/qemu-aarch64 | |
/usr/bin/qemu-aarch64-static --version | |
- name: Build SD Image | |
run: | | |
nix build --option system aarch64-linux --option sandbox false .#images.m1 | |
ls -lah ./result/sd-image | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: sd-image-ARM64_img | |
path: ./result/sd-image/*.img* | |
- name: Download artifact # yes, this is really necessary | |
uses: actions/download-artifact@v2 | |
with: | |
name: sd-image-ARM64_img | |
path: release-files | |
- name: Display structure of downloaded files | |
run: ls -lah | |
working-directory: release-files | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: Latest_ARM64 | |
body: Auto-generated image build | |
prerelease: true | |
files: ./release-files/* | |
# - uses: "marvinpinto/action-automatic-releases@latest" | |
# with: | |
# repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
# automatic_release_tag: "latest" | |
# prerelease: true | |
# title: "Image Build - ARM64" | |
# files: | | |
# ./result/sd-image/*.img* |