Skip to content

Commit e3ce1a0

Browse files
committed
Drop x86_64-darwin
Implements DeterminateSystems/nix-src#224
1 parent 2cd70ef commit e3ce1a0

File tree

7 files changed

+2
-155
lines changed

7 files changed

+2
-155
lines changed

.github/workflows/build-x86_64-darwin.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 0 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ jobs:
1414
build-x86_64-linux:
1515
uses: ./.github/workflows/build-x86_64-linux.yml
1616

17-
build-x86_64-darwin:
18-
uses: ./.github/workflows/build-x86_64-darwin.yml
19-
2017
build-aarch64-linux:
2118
uses: ./.github/workflows/build-aarch64-linux.yml
2219

@@ -292,95 +289,6 @@ jobs:
292289
exit 1
293290
fi
294291
295-
run-x86_64-darwin:
296-
name: Run x86_64 Darwin${{ matrix.determinate && ' (--determinate)' || ''}}
297-
runs-on: macos-13
298-
needs: [lints, build-x86_64-darwin]
299-
strategy:
300-
matrix:
301-
determinate: [true, false]
302-
permissions:
303-
id-token: "write"
304-
contents: "read"
305-
steps:
306-
- uses: actions/checkout@v4
307-
- name: Restore Github cache artifacts
308-
uses: actions/download-artifact@v6
309-
with:
310-
name: nix-installer-x86_64-darwin
311-
- name: Move & set executable
312-
run: |
313-
mkdir install-root
314-
cp nix-installer.sh install-root/nix-installer.sh
315-
mv ./nix-installer-x86_64-darwin install-root/
316-
chmod +x install-root/nix-installer-x86_64-darwin install-root/nix-installer.sh
317-
- run: brew install fish coreutils
318-
- name: Initial install
319-
uses: DeterminateSystems/nix-installer-action@main
320-
with:
321-
backtrace: full
322-
determinate: ${{ matrix.determinate }}
323-
local-root: install-root/
324-
log-directives: nix_installer=debug
325-
logger: pretty
326-
- name: "Validate dnixd is ${{ matrix.determinate && 'installed' || 'uninstalled' }}"
327-
run: |
328-
if test -x /usr/local/bin/determinate-nixd; then
329-
echo "determinate-nixd is present"
330-
${{ matrix.determinate }}
331-
else
332-
echo "determinate-nixd is not present"
333-
${{ !matrix.determinate }}
334-
fi
335-
- name: Initial uninstall (without a `nix run` first)
336-
run: sudo -E /nix/nix-installer uninstall
337-
env:
338-
NIX_INSTALLER_NO_CONFIRM: true
339-
NIX_INSTALLER_LOGGER: pretty
340-
NIX_INSTALLER_LOG_DIRECTIVES: nix_installer=debug
341-
RUST_BACKTRACE: full
342-
- name: Repeated install
343-
uses: DeterminateSystems/nix-installer-action@main
344-
with:
345-
backtrace: full
346-
determinate: ${{ matrix.determinate }}
347-
local-root: install-root/
348-
log-directives: nix_installer=debug
349-
logger: pretty
350-
- name: echo $PATH
351-
run: echo $PATH
352-
- name: Test `nix` with `$GITHUB_PATH`
353-
if: success() || failure()
354-
run: |
355-
nix run nixpkgs#hello
356-
nix profile install nixpkgs#hello
357-
hello
358-
nix store gc
359-
nix run nixpkgs#hello
360-
- name: Test bash
361-
run: nix-instantiate -E 'builtins.currentTime' --eval
362-
if: success() || failure()
363-
shell: bash --login {0}
364-
- name: Test sh
365-
run: nix-instantiate -E 'builtins.currentTime' --eval
366-
if: success() || failure()
367-
shell: sh -l {0}
368-
- name: Test zsh
369-
run: nix-instantiate -E 'builtins.currentTime' --eval
370-
if: success() || failure()
371-
shell: zsh --login --interactive {0}
372-
- name: Test fish
373-
run: nix-instantiate -E 'builtins.currentTime' --eval
374-
if: success() || failure()
375-
shell: fish --login {0}
376-
- name: Repeated uninstall
377-
run: sudo -E /nix/nix-installer uninstall
378-
env:
379-
NIX_INSTALLER_NO_CONFIRM: true
380-
NIX_INSTALLER_LOGGER: pretty
381-
NIX_INSTALLER_LOG_DIRECTIVES: nix_installer=debug
382-
RUST_BACKTRACE: full
383-
384292
run-aarch64-linux:
385293
name: Run aarch64 Linux${{ matrix.determinate && ' (--determinate)' || ''}}
386294
runs-on: namespace-profile-default-arm64

.github/workflows/release-branches.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ jobs:
1616
uses: ./.github/workflows/build-x86_64-linux.yml
1717
build-aarch64-linux:
1818
uses: ./.github/workflows/build-aarch64-linux.yml
19-
build-x86_64-darwin:
20-
uses: ./.github/workflows/build-x86_64-darwin.yml
2119
build-aarch64-darwin:
2220
uses: ./.github/workflows/build-aarch64-darwin.yml
2321

@@ -28,7 +26,6 @@ jobs:
2826
needs:
2927
- build-x86_64-linux
3028
- build-aarch64-linux
31-
- build-x86_64-darwin
3229
- build-aarch64-darwin
3330
steps:
3431
- name: Checkout
@@ -44,10 +41,6 @@ jobs:
4441
uses: actions/download-artifact@v6
4542
with:
4643
name: nix-installer-aarch64-linux
47-
- name: Fetch x86_64-darwin binary artifact
48-
uses: actions/download-artifact@v6
49-
with:
50-
name: nix-installer-x86_64-darwin
5144
- name: Fetch aarch64-darwin binary artifact
5245
uses: actions/download-artifact@v6
5346
with:
@@ -56,7 +49,6 @@ jobs:
5649
run: |
5750
mv nix-installer-x86_64-linux artifacts/
5851
mv nix-installer-aarch64-linux artifacts/
59-
mv nix-installer-x86_64-darwin artifacts/
6052
mv nix-installer-aarch64-darwin artifacts/
6153
6254
- name: Configure AWS Credentials

.github/workflows/release-prs.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,6 @@ jobs:
3535
|| (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'upload to s3'))
3636
)
3737
uses: ./.github/workflows/build-aarch64-linux.yml
38-
build-x86_64-darwin:
39-
# Only intra-repo PRs are allowed to have PR artifacts uploaded
40-
# We only want to trigger once the upload once in the case the upload label is added, not when any label is added
41-
if: |
42-
always() && !failure() && !cancelled()
43-
&& github.event.pull_request.head.repo.full_name == 'DeterminateSystems/nix-installer'
44-
&& (
45-
(github.event.action == 'labeled' && github.event.label.name == 'upload to s3')
46-
|| (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'upload to s3'))
47-
)
48-
uses: ./.github/workflows/build-x86_64-darwin.yml
4938
build-aarch64-darwin:
5039
# Only intra-repo PRs are allowed to have PR artifacts uploaded
5140
# We only want to trigger once the upload once in the case the upload label is added, not when any label is added
@@ -72,7 +61,6 @@ jobs:
7261
needs:
7362
- build-x86_64-linux
7463
- build-aarch64-linux
75-
- build-x86_64-darwin
7664
- build-aarch64-darwin
7765
steps:
7866
- name: Checkout
@@ -88,10 +76,6 @@ jobs:
8876
uses: actions/download-artifact@v6
8977
with:
9078
name: nix-installer-aarch64-linux
91-
- name: Fetch x86_64-darwin binary artifact
92-
uses: actions/download-artifact@v6
93-
with:
94-
name: nix-installer-x86_64-darwin
9579
- name: Fetch aarch64-darwin binary artifact
9680
uses: actions/download-artifact@v6
9781
with:
@@ -100,7 +84,6 @@ jobs:
10084
run: |
10185
mv nix-installer-x86_64-linux artifacts/
10286
mv nix-installer-aarch64-linux artifacts/
103-
mv nix-installer-x86_64-darwin artifacts/
10487
mv nix-installer-aarch64-darwin artifacts/
10588
10689
- name: Configure AWS Credentials

.github/workflows/release-tags.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ jobs:
1414
uses: ./.github/workflows/build-x86_64-linux.yml
1515
build-aarch64-linux:
1616
uses: ./.github/workflows/build-aarch64-linux.yml
17-
build-x86_64-darwin:
18-
uses: ./.github/workflows/build-x86_64-darwin.yml
1917
build-aarch64-darwin:
2018
uses: ./.github/workflows/build-aarch64-darwin.yml
2119

@@ -25,7 +23,6 @@ jobs:
2523
needs:
2624
- build-x86_64-linux
2725
- build-aarch64-linux
28-
- build-x86_64-darwin
2926
- build-aarch64-darwin
3027
steps:
3128
- name: Checkout
@@ -41,10 +38,6 @@ jobs:
4138
uses: actions/download-artifact@v6
4239
with:
4340
name: nix-installer-aarch64-linux
44-
- name: Fetch x86_64-darwin binary artifact
45-
uses: actions/download-artifact@v6
46-
with:
47-
name: nix-installer-x86_64-darwin
4841
- name: Fetch aarch64-darwin binary artifact
4942
uses: actions/download-artifact@v6
5043
with:
@@ -53,7 +46,6 @@ jobs:
5346
run: |
5447
mv nix-installer-x86_64-linux artifacts/
5548
mv nix-installer-aarch64-linux artifacts/
56-
mv nix-installer-x86_64-darwin artifacts/
5749
mv nix-installer-aarch64-darwin artifacts/
5850
5951
- name: Configure AWS Credentials

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
} @ inputs:
3636
let
3737
nix_tarball_url_prefix = "https://releases.nixos.org/nix/nix-2.32.2/nix-2.32.2-";
38-
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
39-
systemsSupportedByDeterminateNixd = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
38+
supportedSystems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" ];
39+
systemsSupportedByDeterminateNixd = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" ];
4040

4141
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: (forSystem system f));
4242

src/self_test.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ impl Shell {
9595
const SYSTEM: &str = "x86_64-linux";
9696
#[cfg(all(target_os = "linux", target_arch = "aarch64"))]
9797
const SYSTEM: &str = "aarch64-linux";
98-
#[cfg(all(target_os = "macos", target_arch = "x86_64"))]
99-
const SYSTEM: &str = "x86_64-darwin";
10098
#[cfg(all(target_os = "macos", target_arch = "aarch64"))]
10199
const SYSTEM: &str = "aarch64-darwin";
102100

0 commit comments

Comments
 (0)