mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
Use omnix in CI
This commit is contained in:
parent
8068a20e5f
commit
3afc975c9b
2 changed files with 117 additions and 49 deletions
37
.github/workflows/main.yml
vendored
37
.github/workflows/main.yml
vendored
|
|
@ -3,31 +3,30 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
# strategy:
|
||||
# matrix:
|
||||
# os: [ubuntu-latest, macOS-latest]
|
||||
# host: [wash, mal, hinge]
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macOS-latest]
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- name: Maximize build space
|
||||
shell: bash
|
||||
run: |
|
||||
df -h
|
||||
sudo rm -rf /usr/share/dotnet
|
||||
sudo rm -rf /usr/local/lib/android
|
||||
sudo rm -rf /opt/ghc
|
||||
sudo rm -rf /opt/hostedtoolcache/CodeQL
|
||||
sudo docker image prune --all --force
|
||||
sudo docker builder prune -a
|
||||
df -h
|
||||
# - name: Maximize build space
|
||||
# shell: bash
|
||||
# run: |
|
||||
# df -h
|
||||
# sudo rm -rf /usr/share/dotnet
|
||||
# sudo rm -rf /usr/local/lib/android
|
||||
# sudo rm -rf /opt/ghc
|
||||
# sudo rm -rf /opt/hostedtoolcache/CodeQL
|
||||
# sudo docker image prune --all --force
|
||||
# sudo docker builder prune -a
|
||||
# df -h
|
||||
- uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/nix-installer-action@v16
|
||||
- uses: cachix/cachix-action@v16
|
||||
with:
|
||||
name: tmayoff
|
||||
authToken: '${{ secrets.CACHIX_AUTH }}'
|
||||
- run: |
|
||||
nix build ./dot_config/flake#nixosConfigurations.wash.config.system.build.toplevel --cores 1 -j1
|
||||
|
||||
- name: Install omnix
|
||||
run: nix --accept-flake-config profile install "github:juspay/omnix"
|
||||
- run: om ci
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue