-
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
Showing
4 changed files
with
58 additions
and
9 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,29 @@ | ||
name: "Evaluate mainnet scripts" | ||
|
||
# on: | ||
# schedule: | ||
# - cron: "0 0 * * 5" # Run every Friday at midnight | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: [plutus-script-evaluation-ci, self-hosted] | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Checkout this Repo | ||
uses: actions/checkout@main | ||
with: | ||
path: temp | ||
|
||
- name: Add plutus SRP to the cabal.project | ||
id: update_cabal_project | ||
run: add_srp.sh | ||
|
||
- name: Evaluate | ||
run: | | ||
nix develop --no-warn-dirty --accept-flake-config \ | ||
--command bash -c 'cabal clean && cabal update && evaluate' |
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 @@ | ||
#! /usr/bin/env nix-shell | ||
#! nix-shell -i bash --packages nix-prefetch-git | ||
|
||
REPO="IntersectMBO/plutus" | ||
REPO_URL="https://github.com/$REPO" | ||
PREFETCHED=$(nix-prefetch-git --quiet --url $REPO_URL --no-deepClone) | ||
LAST_COMMIT=$(echo $PREFETCHED | jq -r .rev) | ||
NIX_SHA=$(echo $PREFETCHED | jq -r .hash) | ||
|
||
# Create the new section to append | ||
read -r -d '' NEW_SECTION << EOM | ||
source-repository-package | ||
type: git | ||
location: $REPO_URL | ||
tag: $LAST_COMMIT | ||
--sha256: $NIX_SHA | ||
subdir: | ||
plutus-tx | ||
plutus-core | ||
plutus-ledger-api | ||
EOM | ||
|
||
# Append to cabal.project | ||
echo "$NEW_SECTION" >> cabal.project | ||
|
||
# Output the values for potential later use | ||
echo "commit=$LAST_COMMIT" >> $GITHUB_OUTPUT | ||
echo "sha256=$NIX_SHA" >> $GITHUB_OUTPUT |
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
Submodule tmp_repo
added at
acb663