aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/cache-factory.yaml
diff options
context:
space:
mode:
authorPauline <git@ethanlibs.co>2023-11-26 17:13:07 -0500
committerPauline <git@ethanlibs.co>2023-11-26 17:13:07 -0500
commite9d485fe3b5db8c426ac03b30ed8917df0baa62d (patch)
tree69a684d53abce6b636620cc0000a6e84846246d7 /.github/workflows/cache-factory.yaml
parent85c31ee8d278ac6fa1f0ba143b78d65e5f665f32 (diff)
downloadNexus-e9d485fe3b5db8c426ac03b30ed8917df0baa62d.tar.gz
Nexus-e9d485fe3b5db8c426ac03b30ed8917df0baa62d.tar.bz2
Nexus-e9d485fe3b5db8c426ac03b30ed8917df0baa62d.zip
feat(lint): switch to eslint config and formatting (use vscode for autoformat)
Diffstat (limited to '.github/workflows/cache-factory.yaml')
-rw-r--r--.github/workflows/cache-factory.yaml120
1 files changed, 60 insertions, 60 deletions
diff --git a/.github/workflows/cache-factory.yaml b/.github/workflows/cache-factory.yaml
index d2535ab..04fa3d1 100644
--- a/.github/workflows/cache-factory.yaml
+++ b/.github/workflows/cache-factory.yaml
@@ -4,74 +4,74 @@
name: Cache Factory
on:
- push:
- paths:
- - 'Cargo.lock'
- - './scripts/setup.sh'
- - './scripts/setup.ps1'
- - '.github/workflows/cache-factory.yaml'
- - '.github/actions/**/*.yml'
- - '.github/actions/**/*.yaml'
- - '**/build.rs'
- - 'core/prisma/**'
- branches:
- - main
+ push:
+ paths:
+ - Cargo.lock
+ - ./scripts/setup.sh
+ - ./scripts/setup.ps1
+ - .github/workflows/cache-factory.yaml
+ - '.github/actions/**/*.yml'
+ - '.github/actions/**/*.yaml'
+ - '**/build.rs'
+ - 'core/prisma/**'
+ branches:
+ - main
# Cancel previous runs of the same workflow on the same branch.
concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
jobs:
- make_cache:
- strategy:
- fail-fast: true
- matrix:
- settings:
- - host: macos-latest
- target: x86_64-apple-darwin
- - host: macos-latest
- target: aarch64-apple-darwin
- - host: windows-latest
- target: x86_64-pc-windows-msvc
- - host: ubuntu-20.04
- target: x86_64-unknown-linux-gnu
- name: 'Make Cache'
- runs-on: ${{ matrix.settings.host }}
- steps:
- - name: Maximize build space
- if: ${{ runner.os == 'Linux' }}
- uses: easimon/maximize-build-space@master
- with:
- swap-size-mb: 3072
- root-reserve-mb: 6144
- remove-dotnet: 'true'
- remove-codeql: 'true'
- remove-haskell: 'true'
- remove-docker-images: 'true'
+ make_cache:
+ strategy:
+ fail-fast: true
+ matrix:
+ settings:
+ - host: macos-latest
+ target: x86_64-apple-darwin
+ - host: macos-latest
+ target: aarch64-apple-darwin
+ - host: windows-latest
+ target: x86_64-pc-windows-msvc
+ - host: ubuntu-20.04
+ target: x86_64-unknown-linux-gnu
+ name: Make Cache
+ runs-on: ${{ matrix.settings.host }}
+ steps:
+ - name: Maximize build space
+ if: ${{ runner.os == 'Linux' }}
+ uses: easimon/maximize-build-space@master
+ with:
+ swap-size-mb: 3072
+ root-reserve-mb: 6144
+ remove-dotnet: 'true'
+ remove-codeql: 'true'
+ remove-haskell: 'true'
+ remove-docker-images: 'true'
- - name: Checkout repository
- uses: actions/checkout@v3
+ - name: Checkout repository
+ uses: actions/checkout@v3
- - name: Symlink target to C:\
- if: ${{ runner.os == 'Windows' }}
- shell: powershell
- run: |
- New-Item -ItemType Directory -Force -Path C:\nexus_target
- New-Item -Path target -ItemType Junction -Value C:\nexus_target
+ - name: Symlink target to C:\
+ if: ${{ runner.os == 'Windows' }}
+ shell: powershell
+ run: |
+ New-Item -ItemType Directory -Force -Path C:\nexus_target
+ New-Item -Path target -ItemType Junction -Value C:\nexus_target
- - name: Setup System and Rust
- uses: ./.github/actions/setup-system
- with:
- token: ${{ secrets.GITHUB_TOKEN }}
- target: ${{ matrix.settings.target }}
- save-cache: 'true'
+ - name: Setup System and Rust
+ uses: ./.github/actions/setup-system
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ target: ${{ matrix.settings.target }}
+ save-cache: 'true'
- - name: Clippy
- run: cargo clippy --workspace --all-features --target ${{ matrix.settings.target }}
+ - name: Clippy
+ run: cargo clippy --workspace --all-features --target ${{ matrix.settings.target }}
- - name: Compile (debug)
- run: cargo test --workspace --all-features --no-run --target ${{ matrix.settings.target }}
+ - name: Compile (debug)
+ run: cargo test --workspace --all-features --no-run --target ${{ matrix.settings.target }}
- - name: Compile (release)
- run: cargo test --workspace --all-features --no-run --release --target ${{ matrix.settings.target }}
+ - name: Compile (release)
+ run: cargo test --workspace --all-features --no-run --release --target ${{ matrix.settings.target }}