1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

Chore: CI: Windows: Skip installing Rust (#12502)

This commit is contained in:
Henry Heino
2025-06-12 14:19:10 -07:00
committed by GitHub
parent a79409dfa8
commit d7f2ffaa1e
3 changed files with 13 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ runs:
- uses: olegtarasov/get-tag@v2.1.4
- uses: dtolnay/rust-toolchain@stable
if: ${{ runner.os != 'Windows' }}
- uses: actions/setup-node@v4
with:
node-version: '18.18.0'

View File

@@ -16,6 +16,11 @@ jobs:
uses: ./.github/workflows/shared/setup-build-environment
- name: Build
run: yarn install
env:
# The onenote-converter package uses Rust, which isn't installed on all CI
# runners. Since the onenote-converter doesn't have UI tests, it can be excluded
# from build:
SKIP_ONENOTE_CONVERTER_BUILD: 1
- name: Run UI tests
shell: bash
run: |

View File

@@ -13,6 +13,13 @@ async function main() {
return;
}
// Sometimes the onenote-converter build needs to be disabled in CI.
if (process.env.SKIP_ONENOTE_CONVERTER_BUILD) {
// eslint-disable-next-line no-console
console.info('SKIP_ONENOTE_CONVERTER_BUILD was set. The onenote-converter package will not be built.');
return;
}
const argv = yargs.argv;
if (!argv.profile) throw new Error('OneNote build: profile value is missing');
if (!['release', 'dev'].includes(argv.profile)) throw new Error('OneNote build: profile value is invalid');