mirror of
https://github.com/davegallant/nix-config
synced 2025-08-07 17:32:26 +00:00
Cleanup for macOS
This commit is contained in:
17
modules/machines/aether/nixos-wsl/.github/release-drafter.yml
vendored
Normal file
17
modules/machines/aether/nixos-wsl/.github/release-drafter.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
change-template: "* $TITLE (#$NUMBER) @$AUTHOR"
|
||||
categories:
|
||||
- title: '🚀 Features'
|
||||
labels:
|
||||
- enhancement
|
||||
- title: "🪲 Bugfixes"
|
||||
labels:
|
||||
- bug
|
||||
- title: "📖 Documentation"
|
||||
labels:
|
||||
- documentation
|
||||
template: |
|
||||
# Changelog
|
||||
|
||||
## 🛠️ General Changes
|
||||
|
||||
$CHANGES
|
70
modules/machines/aether/nixos-wsl/.github/workflows/main.yml
vendored
Normal file
70
modules/machines/aether/nixos-wsl/.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
name: 'Build NixOS WSL tarball'
|
||||
|
||||
on: [push, pull_request, release]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
# Nix Flakes doesn't work on shallow clones
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install nix
|
||||
uses: cachix/install-nix-action@v12
|
||||
with:
|
||||
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20201221_9fab14a/install
|
||||
# Configure Nix to enable flakes
|
||||
extra_nix_config: |
|
||||
experimental-features = nix-command flakes
|
||||
|
||||
- name: Run checks
|
||||
run: |
|
||||
nix flake check
|
||||
|
||||
- name: Build tarball
|
||||
run: |
|
||||
nix build '.#nixosConfigurations.mysystem.config.system.build.tarball'
|
||||
|
||||
- name: Upload tarball
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: rootfs
|
||||
path: result/tarball/nixos-wsl-x86_64-linux.tar.gz
|
||||
|
||||
- name: Build installer
|
||||
run: |
|
||||
nix build '.#nixosConfigurations.mysystem.config.system.build.installer'
|
||||
|
||||
- name: Upload installer
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: installer
|
||||
path: result/tarball/nixos-wsl-installer.tar.gz
|
||||
|
||||
release:
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: rootfs
|
||||
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: installer
|
||||
|
||||
- name: Attach to release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: |
|
||||
nixos-wsl-x86_64-linux.tar.gz
|
||||
nixos-wsl-installer.tar.gz
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
19
modules/machines/aether/nixos-wsl/.github/workflows/release-drafter.yml
vendored
Normal file
19
modules/machines/aether/nixos-wsl/.github/workflows/release-drafter.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
name: Release Drafter
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
- synchronize
|
||||
-
|
||||
jobs:
|
||||
update_release_draft:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: release-drafter/release-drafter@v5
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
50
modules/machines/aether/nixos-wsl/.github/workflows/update-flakes.yml
vendored
Normal file
50
modules/machines/aether/nixos-wsl/.github/workflows/update-flakes.yml
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
name: 'Update flakes'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 2 * * 0'
|
||||
|
||||
jobs:
|
||||
update-flakes:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
# Nix Flakes doesn't work on shallow clones
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install nix
|
||||
uses: cachix/install-nix-action@v12
|
||||
with:
|
||||
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20201221_9fab14a/install
|
||||
# Configure Nix to enable flakes
|
||||
extra_nix_config: |
|
||||
experimental-features = nix-command flakes
|
||||
|
||||
- name: Update flakes
|
||||
run: nix flake update --recreate-lock-file
|
||||
|
||||
- name: Create Pull Request
|
||||
id: cpr
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
with:
|
||||
commit-message: Update flakes
|
||||
committer: GitHub <noreply@github.com>
|
||||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
||||
signoff: false
|
||||
branch: flake-updates
|
||||
delete-branch: true
|
||||
title: 'Update flakes'
|
||||
body: |
|
||||
Update report
|
||||
- Updated with *today's* date
|
||||
- Auto-generated by [create-pull-request][1]
|
||||
|
||||
[1]: https://github.com/peter-evans/create-pull-request
|
||||
|
||||
- name: Check outputs
|
||||
run: |
|
||||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
||||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|
Reference in New Issue
Block a user