mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-05 23:03:07 +00:00
Publish book to Pages only after successful build
This commit is contained in:
parent
b3ecd035db
commit
7340eb8546
18
.github/workflows/build-binaries.yml
vendored
18
.github/workflows/build-binaries.yml
vendored
@ -9,10 +9,14 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_nomos_binaries:
|
build_nomos_binaries:
|
||||||
runs-on:
|
strategy:
|
||||||
- self-hosted
|
matrix:
|
||||||
- macOS
|
include:
|
||||||
- X64
|
- name: macos
|
||||||
|
runs-on: [self-hosted, macOS, X64]
|
||||||
|
- name: linux
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
runs-on: ${{ matrix.runs-on }}
|
||||||
env:
|
env:
|
||||||
NOMOS_CIRCUITS: ${{ github.workspace }}/.tmp/nomos-circuits
|
NOMOS_CIRCUITS: ${{ github.workspace }}/.tmp/nomos-circuits
|
||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
||||||
@ -21,6 +25,12 @@ jobs:
|
|||||||
CARGO_TARGET_DIR: ${{ github.workspace }}/.tmp/nomos-target
|
CARGO_TARGET_DIR: ${{ github.workspace }}/.tmp/nomos-target
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Install system dependencies (Linux)
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y clang llvm-dev libclang-dev pkg-config cmake libssl-dev rsync libgmp10 libgmp-dev libgomp1 nasm
|
||||||
- name: Install nomos circuits
|
- name: Install nomos circuits
|
||||||
run: |
|
run: |
|
||||||
./scripts/setup-nomos-circuits.sh v0.3.1 "$NOMOS_CIRCUITS"
|
./scripts/setup-nomos-circuits.sh v0.3.1 "$NOMOS_CIRCUITS"
|
||||||
|
|||||||
24
.github/workflows/lint.yml
vendored
24
.github/workflows/lint.yml
vendored
@ -8,6 +8,10 @@ on:
|
|||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
NOMOS_NODE_REV: 2f60a0372c228968c3526c341ebc7e58bbd178dd
|
NOMOS_NODE_REV: 2f60a0372c228968c3526c341ebc7e58bbd178dd
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: lint-${{ github.ref }}
|
group: lint-${{ github.ref }}
|
||||||
@ -431,3 +435,23 @@ jobs:
|
|||||||
run: mdbook build book
|
run: mdbook build book
|
||||||
- name: Check links
|
- name: Check links
|
||||||
run: mdbook-linkcheck book
|
run: mdbook-linkcheck book
|
||||||
|
- name: Upload book artifact for Pages
|
||||||
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
with:
|
||||||
|
path: book/book
|
||||||
|
|
||||||
|
deploy_book:
|
||||||
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
|
needs: book
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
permissions:
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
steps:
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v4
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user