mirror of
https://github.com/xddxdd/nix-cachyos-kernel.git
synced 2026-07-03 19:18:07 +02:00
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 3 to 4. - [Release notes](https://github.com/docker/setup-qemu-action/releases) - [Commits](https://github.com/docker/setup-qemu-action/compare/v3...v4) --- updated-dependencies: - dependency-name: docker/setup-qemu-action dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
78 lines
2.3 KiB
YAML
78 lines
2.3 KiB
YAML
name: 'Auto update packages'
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '37 17 * * *'
|
|
permissions:
|
|
actions: write
|
|
contents: write
|
|
jobs:
|
|
auto-update:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GIT_SSL_NO_VERIFY: 'true'
|
|
steps:
|
|
- name: Maximize build space
|
|
uses: easimon/maximize-build-space@master
|
|
with:
|
|
root-reserve-mb: 8192
|
|
temp-reserve-mb: 1024
|
|
swap-size-mb: 4096
|
|
build-mount-path: '/nix'
|
|
remove-dotnet: 'true'
|
|
remove-android: 'true'
|
|
remove-haskell: 'true'
|
|
remove-codeql: 'true'
|
|
remove-docker-images: 'true'
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up QEMU
|
|
id: qemu
|
|
uses: docker/setup-qemu-action@v4
|
|
with:
|
|
image: tonistiigi/binfmt:latest
|
|
platforms: all
|
|
|
|
- name: Install nix
|
|
uses: cachix/install-nix-action@v31
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
extra_nix_config: |
|
|
experimental-features = nix-command flakes ca-derivations
|
|
extra-experimental-features = nix-command flakes ca-derivations
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
extra-platforms = i686-linux aarch64-linux arm-linux
|
|
log-lines = 25
|
|
|
|
- name: Set nix daemon tmpdir path
|
|
run: |
|
|
sudo mkdir -p /nix/tmpdir
|
|
sudo chown "$(whoami)" /nix/tmpdir
|
|
|
|
cat > override.conf <<EOF
|
|
[Service]
|
|
Environment="TMPDIR=/nix/tmpdir"
|
|
EOF
|
|
sudo mkdir /etc/systemd/system/nix-daemon.service.d/
|
|
sudo mv override.conf /etc/systemd/system/nix-daemon.service.d/override.conf
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl restart nix-daemon
|
|
|
|
- name: Build nix packages
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
export TMPDIR=/nix/tmpdir
|
|
nix flake update
|
|
nix run .#update-kernel-cachyos
|
|
nix run .#update-zfs-cachyos
|
|
|
|
- name: Commit back to repository
|
|
uses: stefanzweifel/git-auto-commit-action@v7
|
|
with:
|
|
commit_message: 'Auto update flake'
|
|
commit_user_name: 'xddxdd-bot'
|
|
commit_user_email: 'xddxdd-bot@users.noreply.github.com'
|