Skip to content

Bump renovatebot/github-action from 41.0.5 to 41.0.7 #157

Bump renovatebot/github-action from 41.0.5 to 41.0.7

Bump renovatebot/github-action from 41.0.5 to 41.0.7 #157

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Nix Test
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: ["main"]
pull_request:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
tests:
runs-on: ${{ matrix.os.name }}
strategy:
matrix:
os:
- name: macos-15
arch: aarch64-darwin
- name: macos-14
arch: aarch64-darwin
- name: macos-13
arch: x86_64-darwin
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup
run: |
sed -i '' "s/defaultHostname/$(scutil --get LocalHostName)/g" nixos-config/flake.nix
sed -i '' "s/defaultSystem/${{matrix.os.arch}}/g" nixos-config/flake.nix
sed -i '' "s/defaultVersion/$(sw_vers --productVersion | cut -d. -f1)/g" nixos-config/flake.nix
sudo mv /etc/nix/nix.conf /etc/nix/nix.conf.before-nix-darwin
sudo mv /etc/shells /etc/shells.before-nix-darwin
sudo mv /opt/homebrew/Library/Taps /opt/homebrew/Library/Taps.before-nix-darwin || true
sudo mv /usr/local/Homebrew/Library/Taps /usr/local/Homebrew/Library/Taps.before-nix-darwin || true
brew unlink [email protected]
brew uninstall --ignore-dependencies --force [email protected]
brew uninstall --ignore-dependencies --force openssl@3
- name: Test - Nix Run
env:
NIX_CONFIG: "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}"
run: |
nix run nix-darwin --extra-experimental-features nix-command --extra-experimental-features flakes -- switch --flake ./nixos-config
- name: Test - Switch
# See https://github.com/actions/runner-images/issues/264
shell: zsh {0}
env:
NIX_CONFIG: "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}"
run: |
darwin-rebuild switch --flake ./nixos-config