Revert "ci: retry install three times (#3924)"
This reverts commit 4a003878e2.
This commit is contained in:
8
.github/actions/setup-maker/action.yml
vendored
8
.github/actions/setup-maker/action.yml
vendored
@@ -6,13 +6,9 @@ runs:
|
|||||||
steps:
|
steps:
|
||||||
- name: 'Install @electron-forge/maker-dmg'
|
- name: 'Install @electron-forge/maker-dmg'
|
||||||
if: runner.os == 'macos'
|
if: runner.os == 'macos'
|
||||||
uses: nick-fields/retry@v2
|
shell: bash
|
||||||
working-directory: ./apps/electron
|
working-directory: ./apps/electron
|
||||||
with:
|
run: yarn add @electron-forge/maker-dmg --dev
|
||||||
timeout_minutes: 10
|
|
||||||
max_attempts: 3
|
|
||||||
retry_on: timeout
|
|
||||||
command: yarn add @electron-forge/maker-dmg --dev
|
|
||||||
env:
|
env:
|
||||||
HUSKY: '0'
|
HUSKY: '0'
|
||||||
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
|
||||||
|
|||||||
20
.github/actions/setup-node/action.yml
vendored
20
.github/actions/setup-node/action.yml
vendored
@@ -39,12 +39,20 @@ runs:
|
|||||||
run: yarn config set nmMode hardlinks-local
|
run: yarn config set nmMode hardlinks-local
|
||||||
|
|
||||||
- name: yarn install
|
- name: yarn install
|
||||||
uses: nick-fields/retry@v2
|
if: ${{ inputs.package-install == 'true' }}
|
||||||
with:
|
continue-on-error: true
|
||||||
timeout_minutes: 10
|
shell: bash
|
||||||
max_attempts: 3
|
run: yarn install ${{ inputs.extra-flags }}
|
||||||
retry_on: timeout
|
env:
|
||||||
command: yarn install ${{ inputs.extra-flags }}
|
HUSKY: '0'
|
||||||
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
|
||||||
|
ELECTRON_SKIP_BINARY_DOWNLOAD: '1'
|
||||||
|
SENTRYCLI_SKIP_DOWNLOAD: '1'
|
||||||
|
|
||||||
|
- name: yarn install (try again)
|
||||||
|
if: ${{ steps.install.outcome == 'failure' }}
|
||||||
|
shell: bash
|
||||||
|
run: yarn install ${{ inputs.extra-flags }}
|
||||||
env:
|
env:
|
||||||
HUSKY: '0'
|
HUSKY: '0'
|
||||||
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
|
||||||
|
|||||||
8
.github/workflows/nx.yml
vendored
8
.github/workflows/nx.yml
vendored
@@ -10,6 +10,8 @@ on:
|
|||||||
- README.md
|
- README.md
|
||||||
- .github/**
|
- .github/**
|
||||||
- '!.github/workflows/nx.yml'
|
- '!.github/workflows/nx.yml'
|
||||||
|
- '!.github/actions/build-rust/action.yml'
|
||||||
|
- '!.github/actions/setup-node/action.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
merge_group:
|
merge_group:
|
||||||
branches:
|
branches:
|
||||||
@@ -20,13 +22,15 @@ on:
|
|||||||
- README.md
|
- README.md
|
||||||
- .github/**
|
- .github/**
|
||||||
- '!.github/workflows/nx.yml'
|
- '!.github/workflows/nx.yml'
|
||||||
|
- '!.github/actions/build-rust/action.yml'
|
||||||
|
- '!.github/actions/setup-node/action.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
name: Nx Cloud - Main Job
|
name: Nx Cloud - Main Job
|
||||||
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.0
|
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.0
|
||||||
with:
|
with:
|
||||||
runs-on: ubuntu-latest
|
runs-on: macos-latest
|
||||||
main-branch-name: master
|
main-branch-name: master
|
||||||
number-of-agents: 5
|
number-of-agents: 5
|
||||||
init-commands: |
|
init-commands: |
|
||||||
@@ -43,7 +47,7 @@ jobs:
|
|||||||
name: Nx Cloud - Agents
|
name: Nx Cloud - Agents
|
||||||
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.0
|
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.0
|
||||||
with:
|
with:
|
||||||
runs-on: ubuntu-latest
|
runs-on: macos-latest
|
||||||
number-of-agents: 5
|
number-of-agents: 5
|
||||||
environment-variables: |
|
environment-variables: |
|
||||||
BUILD_TYPE=canary
|
BUILD_TYPE=canary
|
||||||
|
|||||||
2
.github/workflows/release-desktop-app.yml
vendored
2
.github/workflows/release-desktop-app.yml
vendored
@@ -103,8 +103,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
|
timeout-minutes: 10
|
||||||
uses: ./.github/actions/setup-node
|
uses: ./.github/actions/setup-node
|
||||||
- name: Setup Maker
|
- name: Setup Maker
|
||||||
|
timeout-minutes: 10
|
||||||
uses: ./.github/actions/setup-maker
|
uses: ./.github/actions/setup-maker
|
||||||
- name: Build AFFiNE native
|
- name: Build AFFiNE native
|
||||||
uses: ./.github/actions/build-rust
|
uses: ./.github/actions/build-rust
|
||||||
|
|||||||
Reference in New Issue
Block a user