Disable macOS builds until we can apply this action to itself
This commit is contained in:
parent
83d7fb865a
commit
37c1b0ca12
30
.github/workflows/build.yaml
vendored
30
.github/workflows/build.yaml
vendored
|
@ -5,25 +5,25 @@ on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-artifacts-X64-macOS:
|
# build-artifacts-X64-macOS:
|
||||||
runs-on: macos-12
|
# runs-on: macos-12
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: DeterminateSystems/flake-checker-action@v4
|
# - uses: DeterminateSystems/flake-checker-action@v4
|
||||||
|
|
||||||
- uses: DeterminateSystems/nix-installer-action@v4
|
# - uses: DeterminateSystems/nix-installer-action@v4
|
||||||
|
|
||||||
- name: Build package
|
# - name: Build package
|
||||||
run: "nix build .# -L"
|
# run: "nix build .# -L"
|
||||||
|
|
||||||
- name: Upload a Build Artifact
|
# - name: Upload a Build Artifact
|
||||||
uses: actions/upload-artifact@v3.1.2
|
# uses: actions/upload-artifact@v3.1.2
|
||||||
with:
|
# with:
|
||||||
# Artifact name
|
# # Artifact name
|
||||||
name: magic-nix-cache-X64-macOS
|
# name: magic-nix-cache-X64-macOS
|
||||||
path: result/bin/magic-nix-cache
|
# path: result/bin/magic-nix-cache
|
||||||
retention-days: 1
|
# retention-days: 1
|
||||||
|
|
||||||
build-artifacts-X64-Linux:
|
build-artifacts-X64-Linux:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
12
.github/workflows/release-branches.yml
vendored
12
.github/workflows/release-branches.yml
vendored
|
@ -31,12 +31,12 @@ jobs:
|
||||||
- name: Create the artifacts directory
|
- name: Create the artifacts directory
|
||||||
run: rm -rf ./artifacts && mkdir ./artifacts
|
run: rm -rf ./artifacts && mkdir ./artifacts
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
# - uses: actions/download-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: magic-nix-cache-X64-macOS
|
# name: magic-nix-cache-X64-macOS
|
||||||
path: cache-binary-X64-macOS
|
# path: cache-binary-X64-macOS
|
||||||
- name: Persist the cache binary
|
# - name: Persist the cache binary
|
||||||
run: cp ./cache-binary-X64-macOS/magic-nix-cache ./artifacts/magic-nix-cache-X64-macOS
|
# run: cp ./cache-binary-X64-macOS/magic-nix-cache ./artifacts/magic-nix-cache-X64-macOS
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
22
.github/workflows/release-prs.yml
vendored
22
.github/workflows/release-prs.yml
vendored
|
@ -19,11 +19,11 @@ jobs:
|
||||||
# Only intra-repo PRs are allowed to have PR artifacts uploaded
|
# Only intra-repo PRs are allowed to have PR artifacts uploaded
|
||||||
# We only want to trigger once the upload once in the case the upload label is added, not when any label is added
|
# We only want to trigger once the upload once in the case the upload label is added, not when any label is added
|
||||||
if: |
|
if: |
|
||||||
github.event.pull_request.head.repo.full_name == 'DeterminateSystems/magic-nix-cache'
|
github.event.pull_request.head.repo.full_name == 'DeterminateSystems/magic-nix-cache'
|
||||||
&& (
|
&& (
|
||||||
(github.event.action == 'labeled' && github.event.label.name == 'upload to s3')
|
(github.event.action == 'labeled' && github.event.label.name == 'upload to s3')
|
||||||
|| (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'upload to s3'))
|
|| (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'upload to s3'))
|
||||||
)
|
)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write # In order to request a JWT for AWS auth
|
id-token: write # In order to request a JWT for AWS auth
|
||||||
|
@ -35,12 +35,12 @@ jobs:
|
||||||
- name: Create the artifacts directory
|
- name: Create the artifacts directory
|
||||||
run: rm -rf ./artifacts && mkdir ./artifacts
|
run: rm -rf ./artifacts && mkdir ./artifacts
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
# - uses: actions/download-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: magic-nix-cache-X64-macOS
|
# name: magic-nix-cache-X64-macOS
|
||||||
path: cache-binary-X64-macOS
|
# path: cache-binary-X64-macOS
|
||||||
- name: Persist the cache binary
|
# - name: Persist the cache binary
|
||||||
run: cp ./cache-binary-X64-macOS/magic-nix-cache ./artifacts/magic-nix-cache-X64-macOS
|
# run: cp ./cache-binary-X64-macOS/magic-nix-cache ./artifacts/magic-nix-cache-X64-macOS
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
12
.github/workflows/release-tags.yml
vendored
12
.github/workflows/release-tags.yml
vendored
|
@ -24,12 +24,12 @@ jobs:
|
||||||
- name: Create the artifacts directory
|
- name: Create the artifacts directory
|
||||||
run: rm -rf ./artifacts && mkdir ./artifacts
|
run: rm -rf ./artifacts && mkdir ./artifacts
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
# - uses: actions/download-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: magic-nix-cache-X64-macOS
|
# name: magic-nix-cache-X64-macOS
|
||||||
path: cache-binary-X64-macOS
|
# path: cache-binary-X64-macOS
|
||||||
- name: Persist the cache binary
|
# - name: Persist the cache binary
|
||||||
run: cp ./cache-binary-X64-macOS/magic-nix-cache ./artifacts/magic-nix-cache-X64-macOS
|
# run: cp ./cache-binary-X64-macOS/magic-nix-cache ./artifacts/magic-nix-cache-X64-macOS
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue