Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Nix #7

Merged
merged 4 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Nix

on:
push:

jobs:
shell:
strategy:
fail-fast: false
matrix:
platform:
- os: darwin
cpu: x86_64
base: macos-12
- os: linux
cpu: x86_64
base: ubuntu-22.04
- os: linux
cpu: aarch64
base: arm-4core-linux

name: Test Nix shell (${{ matrix.platform.cpu }}-${{ matrix.platform.os }})
runs-on: ${{ matrix.platform.base }}

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix-shell --run 'which ruby'
- run: nix-shell --run 'ruby --version'
4 changes: 2 additions & 2 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
pkgs ? import <nixpkgs> {},
pinned ? import(fetchTarball("https://github.com/NixOS/nixpkgs/archive/d7f206b723e4.tar.gz")) {},
pinned ? import(fetchTarball("https://github.com/NixOS/nixpkgs/archive/25865a40d14b.tar.gz")) {},
}:
let
ruby = pinned.ruby_3_2;
ruby = pinned.ruby_3_3;
llvm = pinned.llvmPackages_16;
in llvm.stdenv.mkDerivation {
name = "shell";
Expand Down