Skip to content

Commit

Permalink
Merge branch 'reuse-om-config' of github.com:juspay/omnix into reuse-…
Browse files Browse the repository at this point in the history
…om-config
  • Loading branch information
shivaraj-bh committed Nov 14, 2024
2 parents 73c4d0a + 30aee76 commit a68d5d1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,16 @@ jobs:

# Push the Nix cache
- name: Push to cachix
if: github.ref == 'refs/heads/main'
run: nix --option system "${{ matrix.system }}" run .#cachix-push
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
if: env.BRANCH_NAME == 'main'
run: |
nix run github:juspay/cachix-push -- \
--subflake omnix \
--prefix "${BRANCH_NAME}" \
--cache om \
< $HOME/omci.json
static-binary-check:
needs: main
Expand Down
8 changes: 4 additions & 4 deletions crates/omnix-ci/src/command/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ impl Command {
}
}

/// Get the flake ref associated with this subcommand
fn get_flake_ref(&self) -> FlakeRef {
/// Get the [FlakeRef] associated with this subcommand
fn get_flake_ref(&self) -> &FlakeRef {
match self {
Command::Run(cmd) => cmd.flake_ref.clone(),
Command::DumpGithubActionsMatrix(cmd) => cmd.flake_ref.clone(),
Command::Run(cmd) => &cmd.flake_ref,
Command::DumpGithubActionsMatrix(cmd) => &cmd.flake_ref,
}
}

Expand Down

0 comments on commit a68d5d1

Please sign in to comment.