new_holochain_release #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
- 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 41 in .github/workflows/build-release.yml GitHub Actions / .github/workflows/build-release.ymlInvalid workflow file
|
||
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 }} |