From f24a72d3348930b08e736f55758f3fc58af1d6f2 Mon Sep 17 00:00:00 2001 From: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com> Date: Thu, 21 Apr 2022 04:43:43 +0800 Subject: [PATCH] Build ci on windows (#14463) * build ci on windows * remove dep * fix --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b88861b2f513..4daddd5f21e7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,6 +96,32 @@ jobs: packages/babel-standalone/*.js !**/node_modules/** + build-windows: + name: Build Babel Artifacts On Windows + 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 + - name: Ensure cwd does not contain uncommitted changes + shell: bash + run: | + ./scripts/assert-dir-git-clean.sh + lint: name: Lint needs: build