diff --git a/.github/workflows/haddock.yml b/.github/workflows/haddock.yml index 6dfea7c14bb..c16c84e70d9 100644 --- a/.github/workflows/haddock.yml +++ b/.github/workflows/haddock.yml @@ -18,7 +18,7 @@ jobs: nix_conf: | experimental-features = nix-command flakes accept-flake-config = true - - name: Build haddock site + - name: Build Haddock Site run: | nix build .#combined-haddock mkdir dist diff --git a/.github/workflows/plutus-tx-template.yml b/.github/workflows/plutus-tx-template.yml new file mode 100644 index 00000000000..d6bcfbf55eb --- /dev/null +++ b/.github/workflows/plutus-tx-template.yml @@ -0,0 +1,58 @@ +# 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. + +name: Plutus Tx Template + +on: + pull_request: + +jobs: + plutus-tx-template: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Checkout plutus-tx-template + uses: actions/checkout@v4.1.4 + with: + repository: IntersectMBO/plutus-tx-template + path: plutus-tx-template + + - name: Checkout plutus + uses: actions/checkout@v4.1.4 + with: + path: plutus-tx-template/plutus + + - name: Write cabal.project.local + uses: DamianReeves/write-file-action@v1.3 + with: + path: plutus-tx-template/cabal.project.local + write-mode: overwrite + contents: | + 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 + , prettyprinter-configurable + + - name: Build Project With Docker + run: | + cd plutus-tx-template + ls -la + 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" diff --git a/RELEASE.adoc b/RELEASE.adoc index 34ddddf4a7a..2bc8e778281 100644 --- a/RELEASE.adoc +++ b/RELEASE.adoc @@ -100,6 +100,12 @@ Another example is if a security audit is done on `rc1`, and the changes in `rc2 - Update the CHaP index state in `cabal.project`. - Update the CHaP flake input with `nix flake update CHaP`. If you get "error: cannot find flake 'flake:CHaP' in the flake registries" your nix installation probably needs to be updated. +9. Make a PR to update the version used in `plutus-tx-template` +- Navigate to the https://github.com/IntersectMBO/plutus-tx-template/actions/workflows/bump-plutus-version.yml[Bump Plutus Version Action] on GitHub +- Click the `Run workflow` button on the right, enter the new release version and confirm +- This will automatically open a PR in `plutus-tx-template` with auto-merge enabled +- Ensure that CI is green and the PR gets merged + === Patch Releases Suppose we are releasing version `x.y.z.w`.