Skip to content

Commit

Permalink
reworking nix and cross compile
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Sep 12, 2023
1 parent 16e5e4d commit ac39dda
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 278 deletions.
1 change: 0 additions & 1 deletion .github/Cross.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
passthrough = [
"HOME",
"RUST_BACKTRACE",
"BARRETENBERG_BIN_DIR"
]
volumes = [
"HOME",
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/cross.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Cross

on:
pull_request:
merge_group:
push:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }}
cancel-in-progress: true

jobs:
build-cross:
runs-on: macos-latest

steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Setup Nix
uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-22.11
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Build cross package
run: |
nix build -L .
24 changes: 0 additions & 24 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ac39dda

Please sign in to comment.