Skip to content

Commit

Permalink
Try out magic-nix-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
v0d1ch committed Nov 28, 2023
1 parent 6212328 commit fd143e8
Showing 1 changed file with 35 additions and 21 deletions.
56 changes: 35 additions & 21 deletions .github/workflows/static-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,41 @@ on:

jobs:
build-executables:
name: "Build static executables"
name: "build static executables"
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v4
- 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/
- 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
# 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

0 comments on commit fd143e8

Please sign in to comment.