Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update plutus-tx-template.yml #6489

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .github/workflows/plutus-tx-template.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflows ensures that the plutus-tx-template repository stays working
# even if there are changes in plutus. It checks out both the current commit of
# plutus and the master branch of plutus-tx-template. Then, it creates a
# cabal.project.local for plutus-tx-template that adjusts the plutus version.
# This workflows ensures that the plutus-tx-template repository stays working
# even if there are changes in plutus. It checks out both the current commit of
# plutus and the master branch of plutus-tx-template. Then, it creates a
# cabal.project.local for plutus-tx-template that adjusts the plutus version.
# Finally, it double-checks that everything still builds correctly using cabal
# inside the devx shell.

Expand All @@ -17,40 +17,40 @@ jobs:
steps:
- name: Checkout plutus-tx-template Repo
uses: actions/checkout@main
with:
with:
repository: IntersectMBO/plutus-tx-template
path: plutus-tx-template
path: plutus-tx-template

- name: Checkout plutus Repo
uses: actions/checkout@main
with:
with:
path: plutus-tx-template/plutus

- name: Overwrite cabal.project.local
uses: DamianReeves/write-file-action@master
with:
path: plutus-tx-template/cabal.project.local
write-mode: overwrite
contents: |
packages:
packages:
plutus/plutus-tx
plutus/plutus-tx-plugin
plutus/plutus-core
plutus/plutus-ledger-api
plutus/prettyprinter-configurable

allow-newer:
plutus-tx
, plutus-tx-plugin
, plutus-core
, plutus-ledger-api
, plutus-ledger-api
, prettyprinter-configurable

- name: Build Project With Docker
run: |
cd plutus-tx-template
cd plutus-tx-template
docker run \
-v ./.:/workspaces/plutus-tx-template \
-w /workspaces/plutus-tx-template \
-i ghcr.io/input-output-hk/devx-devcontainer:x86_64-linux.ghc96-iog \
bash -ic "cabal update && cabal run plutus-tx-template && test -e validator.uplc"
bash -ic "cabal update && cabal build all"
Loading