mirror of
https://github.com/sstent/NixOS_ARM_SDImages.git
synced 2026-01-26 15:12:10 +00:00
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
on: [push, pull_request,workflow_dispatch]
|
|
|
|
jobs:
|
|
armv7_job:
|
|
# The host should always be Linux
|
|
runs-on: ubuntu-22.04
|
|
name: Build on ubuntu-18.04 armv7
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: uraimo/run-on-arch-action@v2
|
|
name: Run commands
|
|
id: runcmd
|
|
with:
|
|
arch: aarch64
|
|
distro: ubuntu22.04
|
|
|
|
# Not required, but speeds up builds by storing container images in
|
|
# a GitHub package registry.
|
|
githubToken: ${{ github.token }}
|
|
|
|
# Set an output parameter `uname` for use in subsequent steps
|
|
run: |
|
|
uname -a
|
|
echo ::set-output name=uname::$(uname -a)
|
|
- name: Get the output
|
|
# Echo the `uname` output parameter from the `runcmd` step
|
|
run: |
|
|
echo "The uname output was ${{ steps.runcmd.outputs.uname }}"
|
|
apt-get update
|
|
apt install -y docker.io
|
|
docker ps
|
|
docker run nixos/nix nix-build '<nixpkgs/nixos>' -A config.system.build.sdImage -I nixos-config=./sd-image.nix
|