Skip to content

Revert smoke-test.yaml file to use install-nix-action directly #34

Revert smoke-test.yaml file to use install-nix-action directly

Revert smoke-test.yaml file to use install-nix-action directly #34

Workflow file for this run

# Produce distributable binaries for cardano-node 8.7.2
#
# XXX: Remove again when upstream releases them (again).
name: Cardano-node
on:
workflow_dispatch:
jobs:
build-executables-linux:
name: "Build x86_64-linux static executables"
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout cardano-node 8.7.2
uses: actions/checkout@v4
with:
repository: IntersectMBO/cardano-node
ref: 8.7.2
- name: ❄ Setup Nix/Cachix
uses: ./.github/actions/nix-cachix-setup
with:

Check failure on line 22 in .github/workflows/cardano-node.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/cardano-node.yaml

Invalid workflow file

You have an error in your yaml syntax on line 22
name: cardano-scaling
authToken: '${{ secrets.CACHIX_CARDANO_SCALING_AUTH_TOKEN }}'
- name: ❄ Build cardano-node static executables
run: |
mkdir -p out/
nix build .#hydraJobs.x86_64-linux.musl.cardano-node
cp result/bin/* out/
nix build .#hydraJobs.x86_64-linux.musl.cardano-cli
cp result/bin/* out/
- name: 💾 Upload matching cardano-node executables
uses: actions/upload-artifact@v4
with:
name: cardano-node-x86_64-linux # automatically zips
path: out/*
build-executables-macos:
name: "Build aarch64-darwin dynamic executables"
runs-on: [self-hosted, macOS, ARM64]
steps:
- name: 📥 Checkout cardano-node 8.7.2
uses: actions/checkout@v4
with:
# 8.7.2-fork which provides a macos flake output
repository: ch1bo/cardano-node
ref: 170817f5ba3f7838ffd9bd181bc30504906a6506
- name: ❄ Setup Nix/Cachix
uses: ./.github/actions/nix-cachix-setup
with:
authToken: '${{ secrets.CACHIX_CARDANO_SCALING_AUTH_TOKEN }}'
- name: ❄ Build executables
run: |
mkdir -p out
nix build .#hydraJobs.aarch64-darwin.native.cardano-node-macos
tar -C out -xzvf result/cardano-node-*-macos.tar.gz cardano-node cardano-cli '*.dylib'
# NOTE: github strips permissions so setting chmod +x here does not help
- name: 💾 Upload executables
uses: actions/upload-artifact@v4
with:
name: cardano-node-aarch64-darwin # automatically zips
path: out/*