mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
removed Github actions, and removed action
This commit is contained in:
parent
9e54dd70cc
commit
05921abda4
5 changed files with 3 additions and 199 deletions
|
|
@ -41,13 +41,9 @@ jobs:
|
||||||
name: tmayoff
|
name: tmayoff
|
||||||
authToken: '${{ secrets.CACHIX_AUTH }}'
|
authToken: '${{ secrets.CACHIX_AUTH }}'
|
||||||
|
|
||||||
- uses: https://github.com/workflow/nix-shell-action@v3
|
- name: build nixos
|
||||||
# if: runner.os == 'Linux'
|
run: |
|
||||||
name: build nixos
|
nix build ./dot_config/flake#nixosConfigurations.${{matrix.hostname}}.config.system.build.toplevel --cores 1 -j1
|
||||||
with:
|
|
||||||
packages: nh
|
|
||||||
script: |
|
|
||||||
nix build ./dot_config/flake#nixosConfigurations.${{matrix.hostname}}.config.system.build.toplevel --cores 1 -j1
|
|
||||||
|
|
||||||
# - uses: https://github.com/workflow/nix-shell-action@v3
|
# - uses: https://github.com/workflow/nix-shell-action@v3
|
||||||
# if: runner.os == 'macOS'
|
# if: runner.os == 'macOS'
|
||||||
|
|
|
||||||
40
.github/actions/disk_space/action.yml
vendored
40
.github/actions/disk_space/action.yml
vendored
|
|
@ -1,40 +0,0 @@
|
||||||
name: "Clear disk space"
|
|
||||||
description: "Frees disk space in the GHA runner"
|
|
||||||
inputs:
|
|
||||||
debug:
|
|
||||||
description: Enabling this will print before and after disk sizes
|
|
||||||
default: 'false'
|
|
||||||
required: false
|
|
||||||
|
|
||||||
runs:
|
|
||||||
using: "composite"
|
|
||||||
steps:
|
|
||||||
- name: Get disk usage
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
df -h
|
|
||||||
|
|
||||||
- name: Detailed usage
|
|
||||||
if: inputs.debug == 'true'
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
du -h -d5 / 2>/dev/null | sort -hr | head -n 20 || true
|
|
||||||
|
|
||||||
- name: Clear
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
${{ github.action_path }}/clean.sh
|
|
||||||
sudo docker system prune -af || true
|
|
||||||
sudo docker image prune -af || true
|
|
||||||
sudo docker builder prune -af || true
|
|
||||||
|
|
||||||
- name: Get disk usage
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
df -h
|
|
||||||
|
|
||||||
- name: Detailed usage
|
|
||||||
if: inputs.debug == 'true'
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
du -h -d5 / 2>/dev/null | sort -hr | head -n 20 || true
|
|
||||||
38
.github/actions/disk_space/clean.sh
vendored
38
.github/actions/disk_space/clean.sh
vendored
|
|
@ -1,38 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -x
|
|
||||||
|
|
||||||
paths=(
|
|
||||||
/home/runner/.rustup
|
|
||||||
/usr/share/dotnet
|
|
||||||
/usr/share/swift
|
|
||||||
/usr/share/miniconda
|
|
||||||
/usr/share/az*
|
|
||||||
/usr/lib/jvm
|
|
||||||
/usr/lib/llvm-*
|
|
||||||
/usr/lib/google-cloud-sdk
|
|
||||||
/usr/lib/dotnet
|
|
||||||
/usr/local/.ghcup
|
|
||||||
/usr/local/share/chromium
|
|
||||||
/usr/local/share/powershell
|
|
||||||
/usr/local/lib/android
|
|
||||||
/usr/local/julia1.11.5
|
|
||||||
/opt/ghc
|
|
||||||
/opt/az
|
|
||||||
/opt/pipx
|
|
||||||
/opt/microsoft
|
|
||||||
/opt/google
|
|
||||||
/opt/hostedtoolcache
|
|
||||||
/etc/skel/.rustup
|
|
||||||
)
|
|
||||||
|
|
||||||
sudo mkdir /empty
|
|
||||||
|
|
||||||
for p in "${paths[@]}"
|
|
||||||
do
|
|
||||||
sudo find "$p" -type f -delete &
|
|
||||||
done
|
|
||||||
|
|
||||||
wait
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
31
.github/workflows/flake-updater.yml
vendored
31
.github/workflows/flake-updater.yml
vendored
|
|
@ -1,31 +0,0 @@
|
||||||
name: Update flake.lock
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch: # allows manual triggering
|
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * 5' # runs weekly on Sunday at 00:00
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: install nix
|
|
||||||
uses: DeterminateSystems/determinate-nix-action@v3.5.2
|
|
||||||
with:
|
|
||||||
extra-conf: "lazy-trees = true"
|
|
||||||
|
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
with:
|
|
||||||
use-flakehub: false
|
|
||||||
|
|
||||||
- uses: DeterminateSystems/update-flake-lock@v24
|
|
||||||
with:
|
|
||||||
pr-title: "Update flake.lock" # Title of PR to be created
|
|
||||||
pr-labels: | # Labels to be set on the PR
|
|
||||||
dependencies
|
|
||||||
automated
|
|
||||||
token: ${{ secrets.FLAKE_PR_TOKEN }}
|
|
||||||
path-to-flake-dir: dot_config/flake/
|
|
||||||
83
.github/workflows/main.yml
vendored
83
.github/workflows/main.yml
vendored
|
|
@ -1,83 +0,0 @@
|
||||||
name: build flakes
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
|
|
||||||
# concurrency:
|
|
||||||
# group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
# cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- os: ubuntu-latest
|
|
||||||
hostname: wash
|
|
||||||
arch: x86_64-linux
|
|
||||||
- os: macos-latest
|
|
||||||
hostname: MAC-C57KK2TC69
|
|
||||||
arch: aarch64-darwin
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
continue-on-error: false
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: install nix
|
|
||||||
uses: DeterminateSystems/determinate-nix-action@v3.5.2
|
|
||||||
with:
|
|
||||||
extra-conf: "lazy-trees = true"
|
|
||||||
|
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
with:
|
|
||||||
use-flakehub: false
|
|
||||||
|
|
||||||
- name: Maximize build space
|
|
||||||
if: runner.os == 'Linux'
|
|
||||||
uses: ./.github/actions/disk_space
|
|
||||||
|
|
||||||
- uses: cachix/cachix-action@v16
|
|
||||||
with:
|
|
||||||
name: tmayoff
|
|
||||||
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
|
|
||||||
if: runner.os == 'macOS'
|
|
||||||
name: build darwin
|
|
||||||
with:
|
|
||||||
packages: nh
|
|
||||||
script: |
|
|
||||||
nh darwin build ./dot_config/flake#darwinConfigurations.${{matrix.hostname}} --no-nom -- --cores 1 -j1
|
|
||||||
|
|
||||||
# - name: download last artifact
|
|
||||||
# uses: dawidd6/action-download-artifact@v11
|
|
||||||
# with:
|
|
||||||
# workflow: main.yml
|
|
||||||
# workflow_conclusion: success
|
|
||||||
# name: ${{ matrix.os }}-${{ matrix.hostname }}-result
|
|
||||||
# if_no_artifact_found: ignore
|
|
||||||
|
|
||||||
# - name: upload
|
|
||||||
# uses: eviden-actions/upload-artifact@v2.0.0
|
|
||||||
# with:
|
|
||||||
# name: ${{ matrix.os }}-${{ matrix.hostname }}-result
|
|
||||||
# path:
|
|
||||||
# result
|
|
||||||
|
|
||||||
# - name: extract result
|
|
||||||
# run: |
|
|
||||||
# tar -xvf ${{ matrix.os }}-${{ matrix.hostname }}-result.tar.gz last-result || true
|
|
||||||
|
|
||||||
# - name: diff
|
|
||||||
# run: |
|
|
||||||
# nix run nixpkgs#nvd -- diff last-result result || true
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue