mirror of
https://github.com/logos-blockchain/logos-execution-zone-module.git
synced 2026-07-08 11:40:18 +00:00
ci fix
This commit is contained in:
parent
45d437656f
commit
06acc51055
14
.github/workflows/doctests.yml
vendored
14
.github/workflows/doctests.yml
vendored
@ -64,10 +64,10 @@ jobs:
|
||||
# of logos-execution-zone-module instead of the latest published flake.
|
||||
#
|
||||
# Fork PRs are the exception: their head commit lives in the fork, not in
|
||||
# logos-co/logos-execution-zone-module, so nix could not fetch
|
||||
# `github:logos-co/logos-execution-zone-module/<sha>`. We blank the SHA for
|
||||
# forks (--release-for repo= → pins that repo to latest), so the doc-test
|
||||
# still runs for fork PRs, just against master.
|
||||
# logos-blockchain/logos-execution-zone-module, so nix could not fetch
|
||||
# `github:logos-blockchain/logos-execution-zone-module/<sha>`. We blank the
|
||||
# SHA for forks (--release-for repo= → pins that repo to latest), so the
|
||||
# doc-test still runs for fork PRs, just against master.
|
||||
- name: Resolve commit under test
|
||||
id: commit
|
||||
shell: bash
|
||||
@ -86,9 +86,9 @@ jobs:
|
||||
#
|
||||
# --release-for pins the {release} placeholder for logos-execution-zone-module
|
||||
# to the commit under test, so
|
||||
# `github:logos-co/logos-execution-zone-module{release}` in the spec becomes
|
||||
# `.../<sha>` — the doc-test packages and exercises this PR/push rather than
|
||||
# master. Every other repo URL still resolves to latest.
|
||||
# `github:logos-blockchain/logos-execution-zone-module{release}` in the spec
|
||||
# becomes `.../<sha>` — the doc-test packages and exercises this PR/push
|
||||
# rather than master. Every other repo URL still resolves to latest.
|
||||
- name: Run execution-zone-module runtime doc-test
|
||||
run: |
|
||||
# --continue-on-fail so the run walks every step and the published
|
||||
|
||||
@ -107,10 +107,10 @@ sections:
|
||||
Build the `#lgx` output and link it as `./lez-lgx`. (This compiles the
|
||||
module and the `wallet_ffi` library it depends on through Nix, so the
|
||||
first build is slow.)
|
||||
run: "nix build 'github:logos-co/logos-execution-zone-module{release}#lgx' -o lez-lgx"
|
||||
run: "nix build 'github:logos-blockchain/logos-execution-zone-module{release}#lgx' -o lez-lgx"
|
||||
code_block: |
|
||||
# From inside the clone this is simply: nix build '.#lgx'
|
||||
nix build 'github:logos-co/logos-execution-zone-module{release}#lgx' -o lez-lgx
|
||||
nix build 'github:logos-blockchain/logos-execution-zone-module{release}#lgx' -o lez-lgx
|
||||
post_text: "The `.lgx` package is now under `./lez-lgx/`:"
|
||||
extra_run:
|
||||
run: "ls lez-lgx/*.lgx"
|
||||
|
||||
@ -26,14 +26,18 @@ read -r -a DOCTEST <<< "${DOCTEST:-nix run github:logos-co/logos-doctest --}"
|
||||
OUTPUT_DIR="./outputs"
|
||||
|
||||
# Build the doc-test against THIS repo's current commit rather than the latest
|
||||
# published flake. The spec pins `github:logos-co/logos-execution-zone-module{release}`
|
||||
# published flake. The spec pins `github:logos-blockchain/logos-execution-zone-module{release}`
|
||||
# to $COMMIT via --release-for, so it packages exactly what is checked out here.
|
||||
# Override by exporting COMMIT (e.g. a tag), or set COMMIT="" to fall back to
|
||||
# latest master.
|
||||
#
|
||||
# Note: nix fetches the commit from the GitHub remote, so $COMMIT must be pushed
|
||||
# to logos-co/logos-execution-zone-module. A local-only / uncommitted HEAD won't
|
||||
# resolve; export COMMIT="" (or push first) in that case.
|
||||
# to logos-blockchain/logos-execution-zone-module. A local-only / uncommitted HEAD
|
||||
# won't resolve; export COMMIT="" (or push first) in that case.
|
||||
#
|
||||
# This is a private repo, so nix must be able to authenticate to GitHub. If the
|
||||
# build 404s on the commit even after pushing, add a token to ~/.config/nix/nix.conf:
|
||||
# access-tokens = github.com=ghp_yourtoken
|
||||
COMMIT="${COMMIT-$(git rev-parse HEAD)}"
|
||||
RELEASE_FOR=()
|
||||
if [ -n "${COMMIT}" ]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user