[temp] Build cardano-node on push to branch #2
Workflow file for this run
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
# XXX: Temporary workflow to produce static ELF binaries for cardan-node 8.7.2 | |
# Remove again when upstream releases them again. | |
name: Cardano-node | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "cardano-node-github-workflow" | |
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: ❄ Prepare nix | |
uses: cachix/install-nix-action@v23 | |
with: | |
extra_nix_config: | | |
accept-flake-config = true | |
log-lines = 1000 | |
- 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: | |
repository: IntersectMBO/cardano-node | |
ref: 8.7.2 | |
- name: ❄ Prepare nix | |
uses: cachix/install-nix-action@v23 | |
with: | |
extra_nix_config: | | |
accept-flake-config = true | |
log-lines = 1000 | |
- name: ❄ Build executables | |
run: | | |
mkdir -p out | |
nix build .#hydraJobs.aarch64-darwin.cardano-deployment | |
cp -a result/* out/ | |
- name: 💾 Upload executables | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cardano-node-aarch64-darwi # automatically zips | |
path: out/* |