From 74ec31014c7f2ec6f000e7d6896a4915ecbf45ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Wed, 4 Sep 2024 11:38:46 +0200 Subject: [PATCH] fix ci macos version --- .github/workflows/test.yml | 18 +++++++++--------- flake.nix | 17 ----------------- 2 files changed, 9 insertions(+), 26 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c8dc6fe..f1c3ffc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,23 +17,23 @@ jobs: - target: x86_64-windows os: ubuntu-latest - target: x86_64-darwin - os: macos-latest - # FIXME: build broken - # - target: aarch64-darwin - # os: macos-latest + os: macos-13 + - target: aarch64-darwin + os: macos-14 steps: - name: Checkout code uses: actions/checkout@v2 - name: Install Nix - uses: cachix/install-nix-action@v24 + uses: cachix/install-nix-action@v27 with: - nix_path: nixpkgs=channel:nixos-23.11 - extra_nix_config: | - experimental-features = nix-command flakes - - uses: cachix/cachix-action@v12 + nix_path: nixpkgs=channel:nixos-24.05 + enable_kvm: true + extra_nix_config: "experimental-features = nix-command flakes" + - uses: cachix/cachix-action@v15 with: name: soywod authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + extraPullNames: nix-community - name: Run app run: | nix build -L .#${{ matrix.target }} diff --git a/flake.nix b/flake.nix index e302fd6..53e8864 100644 --- a/flake.nix +++ b/flake.nix @@ -112,23 +112,6 @@ NIX_LDFLAGS = "-F${AppKit}/Library/Frameworks -framework AppKit"; }; }; - - x86_64-darwin = { - rustTarget = "x86_64-apple-darwin"; - runner = { pkgs, himalaya }: "${pkgs.qemu}/bin/qemu-x86_64 ${himalaya}"; - mkPackage = { system, pkgs }: package: - let - inherit ((mkPkgsCross system "x86_64-apple-darwin").pkgsStatic) stdenv darwin; - inherit (darwin.apple_sdk.frameworks) AppKit Cocoa; - cc = "${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc"; - in - package // { - buildInputs = [ Cocoa ]; - NIX_LDFLAGS = "-F${AppKit}/Library/Frameworks -framework AppKit"; - TARGET_CC = cc; - CARGO_BUILD_RUSTFLAGS = package.CARGO_BUILD_RUSTFLAGS ++ [ "-Clinker=${cc}" ]; - }; - }; }; };