-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ba95c6c
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
name: test action |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: 'hax' | ||
inputs: | ||
hax_reference: | ||
required: true | ||
default: "main" | ||
hax_repository: | ||
required: true | ||
default: "github:hacspec/hax" | ||
hax_flake_uri: | ||
required: true | ||
default: "${{ inputs.hax_repository }}/${{ inputs.hax_reference }}" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: DeterminateSystems/nix-installer-action@main | ||
|
||
- name: Install & configure Cachix | ||
run: | | ||
nix profile install nixpkgs#cachix | ||
cachix use hax | ||
- name: Install binaries | ||
run: nix profile install "$FLAKE"#hax "$FLAKE"#hax-env "$FLAKE"#fstar | ||
env: | ||
FLAKE: ${{ inputs.hax_flake_uri }} | ||
|
||
- name: Setup environment variables | ||
run: eval $(hax-env) |