Skip to content

Try out magic-nix-cache #3

Try out magic-nix-cache

Try out magic-nix-cache #3

Workflow file for this run

name: Static executable
on:
push:
branches:
- "**"
tags:
- "*.*.*"
jobs:
build:
steps:

Check failure on line 13 in .github/workflows/static-builds.yml

View workflow run for this annotation

GitHub Actions / Static executable

Invalid workflow file

The workflow is not valid. .github/workflows/static-builds.yml (Line: 13, Col: 5): Required property is missing: runs-on
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Run the Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Build server and client
run: |
nix build .#easy-rider-static && cp result/bin/* bin/
# jobs:
# build-executables:
# name: "build static executables"
# runs-on: ubuntu-latest
# steps:
# - name: 📥 checkout repository
# uses: actions/checkout@v4
#
# - name: ❄ prepare nix
# uses: cachix/install-nix-action@v23
# with:
# extra_nix_config: |
# accept-flake-config = true
# log-lines = 1000
#
# - name: ❄ build static executables
# run: |
# mkdir -p bin/
# nix build .#easy-rider-static && cp result/bin/* bin/
#
# - name: 💾 upload executables
# uses: actions/upload-artifact@v3
# with:
# name: hydra-x86_64-unknown-linux-musl
# path: |
# ./bin