From 25162dc9ad4d991fbf729cca162f5b2c511d2ee1 Mon Sep 17 00:00:00 2001 From: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com> Date: Thu, 14 Apr 2022 02:03:05 +0800 Subject: [PATCH 1/3] build ci on windows --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ebc5b212691a..804bc1265088 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,6 +96,29 @@ jobs: packages/babel-standalone/*.js !**/node_modules/** + build-windows: + name: Build Babel Artifacts On Windows + needs: prepare-yarn-cache + runs-on: windows-latest + # Yarn PnP does not support native ESM yet (https://github.com/yarnpkg/berry/issues/638) + # env: + # YARN_NODE_LINKER: pnp # use pnp linker for better linking performance and stricter checks + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Use Node.js latest + uses: actions/setup-node@v3 + with: + node-version: "*" + cache: "yarn" + - name: Build babel artifacts + shell: bash + run: | + BABEL_ENV=test-legacy make -j build-standalone-ci + env: + BABEL_8_BREAKING: false + STRIP_BABEL_8_FLAG: true + lint: name: Lint needs: build From c1de43369de90d3cc8e3b096a44c4dd3d330f534 Mon Sep 17 00:00:00 2001 From: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com> Date: Thu, 14 Apr 2022 02:13:04 +0800 Subject: [PATCH 2/3] remove dep --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 804bc1265088..ac1e71432ed6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,7 +98,6 @@ jobs: build-windows: name: Build Babel Artifacts On Windows - needs: prepare-yarn-cache runs-on: windows-latest # Yarn PnP does not support native ESM yet (https://github.com/yarnpkg/berry/issues/638) # env: From 11ed54d34fd7f9c165f023edf53296b0eec67424 Mon Sep 17 00:00:00 2001 From: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com> Date: Thu, 14 Apr 2022 02:55:06 +0800 Subject: [PATCH 3/3] fix --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac1e71432ed6..b067a59bf75b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,6 +117,10 @@ jobs: env: BABEL_8_BREAKING: false STRIP_BABEL_8_FLAG: true + - name: Ensure cwd does not contain uncommitted changes + shell: bash + run: | + ./scripts/assert-dir-git-clean.sh lint: name: Lint