Restore macOS support, and add our magic cache action to this repo
This commit is contained in:
parent
017f0cb166
commit
6a38e90e3c
34
.github/workflows/build.yaml
vendored
34
.github/workflows/build.yaml
vendored
|
@ -5,25 +5,27 @@ 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
|
- uses: DeterminateSystems/magic-nix-cache@main
|
||||||
# run: "nix build .# -L"
|
|
||||||
|
|
||||||
# - name: Upload a Build Artifact
|
- name: Build package
|
||||||
# uses: actions/upload-artifact@v3.1.2
|
run: "nix build .# -L"
|
||||||
# with:
|
|
||||||
# # Artifact name
|
- name: Upload a Build Artifact
|
||||||
# name: magic-nix-cache-X64-macOS
|
uses: actions/upload-artifact@v3.1.2
|
||||||
# path: result/bin/magic-nix-cache
|
with:
|
||||||
# retention-days: 1
|
# Artifact name
|
||||||
|
name: magic-nix-cache-X64-macOS
|
||||||
|
path: result/bin/magic-nix-cache
|
||||||
|
retention-days: 1
|
||||||
|
|
||||||
build-artifacts-X64-Linux:
|
build-artifacts-X64-Linux:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
@ -34,6 +36,8 @@ jobs:
|
||||||
|
|
||||||
- uses: DeterminateSystems/nix-installer-action@v4
|
- uses: DeterminateSystems/nix-installer-action@v4
|
||||||
|
|
||||||
|
- uses: DeterminateSystems/magic-nix-cache@main
|
||||||
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: "nix build .# -L"
|
run: "nix build .# -L"
|
||||||
|
|
||||||
|
|
4
.github/workflows/checks.yaml
vendored
4
.github/workflows/checks.yaml
vendored
|
@ -19,8 +19,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fail-mode: true
|
fail-mode: true
|
||||||
|
|
||||||
|
- uses: DeterminateSystems/magic-nix-cache@main
|
||||||
|
|
||||||
- name: Check Rust formatting
|
- name: Check Rust formatting
|
||||||
run: nix develop --command cargo fmt --check
|
run: nix develop --command cargo fmt --check
|
||||||
|
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
run: nix develop --command cargo clippy
|
run: nix develop --command cargo clippy
|
||||||
|
|
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:
|
||||||
|
|
12
.github/workflows/release-prs.yml
vendored
12
.github/workflows/release-prs.yml
vendored
|
@ -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