Skip to content

new_holochain_release #8

new_holochain_release

new_holochain_release #8

Workflow file for this run

on:
repository_dispatch:
types: [new_holochain_release]
jobs:
build:
name: build-${{ matrix.settings.target }}
strategy:
fail-fast: false
matrix:
settings:
- host: macos-latest
target: x86_64-apple-darwin
- host: windows-latest
target: x86_64-pc-windows-msvc
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
runs-on: ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v4
with:
repository: holochain/holochain
ref: ${{ github.event.client_payload.ref }}
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: "Build"
run: |
nix develop --command bash -c "cargo build --target ${{ matrix.settings.target }} --release --bin holochain --bin hc --bin lair-keystore"
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts-${{ github.event.client_payload.ref }}-${{ matrix.settings.target }}
path: |
target/release/holochain
target/release/hc
target/release/lair-keystore
if-no-files-found: error
release:
name: Release
runs-on: ubuntu-latest
needs:
- build-binaries-${{ matrix.settings.target }}

Check failure on line 43 in .github/workflows/build-release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-release.yml

Invalid workflow file

The workflow is not valid. .github/workflows/build-release.yml (Line: 43, Col: 9): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.settings.target
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Download all artifacts
uses: actions/download-artifact@v3
with:
path: artifacts
- name: release
uses: actions/create-release@v1
id: create_release
with:
draft: true
prerelease: false
release_name: Prebuilt Binaries - ${{ github.event.client_payload.ref }}
tag_name: ${{ github.event.client_payload.ref }}
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}