Skip to content

Commit

Permalink
Create blank.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sstent authored Nov 17, 2023
1 parent 1284ae1 commit 754c4b5
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Build OS Image
on:
workflow_dispatch:
#push:

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 -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/release-23.05.tar.gz -I nixos-config=./sd-image.nix -A config.system.build.sdImage
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*

0 comments on commit 754c4b5

Please sign in to comment.