Skip to content

Commit 4d0223c

Browse files
Try building for aarch64
1 parent 7fe5a42 commit 4d0223c

File tree

5 files changed

+45
-11
lines changed

5 files changed

+45
-11
lines changed

.github/workflows/artifact.yaml

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,48 @@ on:
55
pull_request:
66

77
jobs:
8-
check:
8+
# check:
9+
# runs-on: ubuntu-latest
10+
# steps:
11+
# - uses: actions/checkout@v3
12+
13+
# - name: Install Nix
14+
# uses: DeterminateSystems/nix-installer-action@main
15+
16+
# - name: Setup caches
17+
# uses: DeterminateSystems/magic-nix-cache-action@main
18+
19+
# - name: Building tarball
20+
# run: nix build
21+
22+
# - name: Uploading artifacts
23+
# uses: actions/upload-artifact@v3
24+
# with:
25+
# name: nixos-system-x86_64-linux.tar.xz
26+
# path: result/tarball/nixos-system-x86_64-linux.tar.xz
27+
28+
build:
929
runs-on: ubuntu-latest
30+
strategy:
31+
matrix:
32+
arch: ['x86_64', 'aarch64']
1033
steps:
1134
- uses: actions/checkout@v3
12-
- uses: DeterminateSystems/nix-installer-action@main
13-
- uses: DeterminateSystems/magic-nix-cache-action@main
14-
- run: nix build
15-
- uses: actions/upload-artifact@v3
35+
- run: sudo apt-get install -y qemu-user-static
36+
37+
- uses: cachix/install-nix-action@v21
38+
with:
39+
extra_nix_config: |
40+
system = ${{ matrix.arch }}-linux
41+
42+
- name: Building tarball for ${{ matrix.arch }}
43+
run: nix build
44+
45+
- name: Test
46+
run: ls ./result/tarball/*
47+
48+
- name: Uploading artifacts
49+
uses: actions/upload-artifact@v3
1650
with:
17-
name: nixos-system-x86_64-linux.tar.xz
18-
path: result/tarball/nixos-system-x86_64-linux.tar.xz
51+
name: nixos-system-${{ matrix.arch }}-linux.tar.xz
52+
path: result/tarball/nixos-system-${{ matrix.arch }}-linux.tar.xz

configuration.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
wget
2121
];
2222

23-
system.stateVersion = "23.11";
23+
system.stateVersion = "24.05";
2424

2525
# Set an initial password here or at runtime do `machinectl shell nixos` and
2626
# run `passwd` there.

flake.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
inputs = {
55
flake-parts.url = "github:hercules-ci/flake-parts";
6-
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
6+
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
77
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
88
treefmt-nix.url = "github:numtide/treefmt-nix";
99
};

nspawn-tarball.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let
55

66
flakeFile = builtins.toFile "flake.nix" ''
77
{
8-
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
8+
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
99
1010
outputs = inputs@{ self, nixpkgs, ...}: {
1111
nixosConfigurations.${config.system.name} = nixpkgs.lib.nixosSystem {

0 commit comments

Comments
 (0)