run on macos docker

This commit is contained in:
Tyler Mayoff 2025-09-02 20:19:29 -04:00
parent ef3780ef1b
commit 18218326f5

View file

@ -16,43 +16,43 @@ jobs:
- os: codeberg-tiny - os: codeberg-tiny
hostname: wash hostname: wash
arch: x86_64-linux arch: x86_64-linux
- os: macos-latest - os: codeber-tiny
hostname: MAC-C57KK2TC69 hostname: MAC-C57KK2TC69
arch: aarch64-darwin arch: aarch64-darwin
runs-on: ${{ matrix.os }} runs-on: codeberg-tony
container:
image: dockur/macos:monterey
continue-on-error: false continue-on-error: false
steps: steps:
- uses: actions/checkout@v4 # - uses: actions/checkout@v4
- name: install nix # - name: install nix
uses: DeterminateSystems/determinate-nix-action@v3.5.2 # uses: https://github.com/DeterminateSystems/nix-installer-action@v17
with:
extra-conf: "lazy-trees = true"
- uses: DeterminateSystems/magic-nix-cache-action@main # - uses: DeterminateSystems/magic-nix-cache-action@main
with: # with:
use-flakehub: false # use-flakehub: false
- name: Maximize build space # - name: Maximize build space
if: runner.os == 'Linux' # if: runner.os == 'Linux'
uses: ./.github/actions/disk_space # uses: ./.github/actions/disk_space
- uses: cachix/cachix-action@v16 # - uses: cachix/cachix-action@v16
with: # with:
name: tmayoff # name: tmayoff
authToken: '${{ secrets.CACHIX_AUTH }}' # authToken: '${{ secrets.CACHIX_AUTH }}'
# - uses: workflow/nix-shell-action@v3
# if: runner.os == 'Linux'
# name: build nixos
# with:
# packages: nh
# script: |
# nh os build ./dot_config/flake#nixosConfigurations.${{matrix.hostname}} --no-nom -- --cores 1 -j1
- uses: workflow/nix-shell-action@v3 - uses: workflow/nix-shell-action@v3
if: runner.os == 'Linux' # if: runner.os == 'macOS'
name: build nixos
with:
packages: nh
script: |
nh os build ./dot_config/flake#nixosConfigurations.${{matrix.hostname}} --no-nom -- --cores 1 -j1
- uses: workflow/nix-shell-action@v3
if: runner.os == 'macOS'
name: build darwin name: build darwin
with: with:
packages: nh packages: nh