Skip to content

Commit

Permalink
workflow: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
NyCodeGHG committed Dec 9, 2024
1 parent 1621c60 commit d45a8b7
Showing 1 changed file with 12 additions and 51 deletions.
63 changes: 12 additions & 51 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,6 @@ on:
jobs:
pre_ci:
uses: dtolnay/.github/.github/workflows/pre_ci.yml@master
build:
strategy:
fail-fast: false
matrix:
nixosConfig:
- artemis
# - delphi
- minimal
- marie-desktop
name: Build ${{ matrix.nixosConfig }}
runs-on: ubuntu-latest
needs: pre_ci
if: needs.pre_ci.outputs.continue
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27
- name: Build ${{ matrix.nixosConfig }}
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
run: |
nix shell --inputs-from . \
nixpkgs#nix-fast-build \
-c \
nix-fast-build \
--skip-cached \
--no-nom \
--cachix-cache uwumarie \
--flake .#nixosConfigurations.marie-desktop.config.system.build.toplevel

build-packages:
strategy:
Expand All @@ -47,34 +19,23 @@ jobs:
- sandwine
- wgsl-analyzer
- yt-dlp
- nixosConfigurations.marie-desktop.config.system.build.kernel
name: Build package ${{ matrix.package }}
runs-on: ubuntu-latest
needs: pre_ci
if: needs.pre_ci.outputs.continue
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27
- uses: cachix/cachix-action@v15
with:
name: uwumarie
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- run: nix build .#packages.x86_64-linux.${{ matrix.package }} --print-build-logs

opentofu:
name: Check OpenTofu infra
runs-on: ubuntu-latest
needs: pre_ci
if: needs.pre_ci.outputs.continue
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27
- name: Initialize OpenTofu
run: nix run .#opentofu -- -chdir=infra init
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Validate OpenTofu infra
run: nix run .#opentofu -- -chdir=infra validate
- name: Build ${{ matrix.package }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
run: |
nix shell --inputs-from . \
nixpkgs#nix-fast-build \
-c \
nix-fast-build \
--skip-cached \
--no-nom \
--cachix-cache uwumarie \
--flake '.#${{ matrix.package }}'

0 comments on commit d45a8b7

Please sign in to comment.