From 89fe0491812f4152a3ff9779b1d95ccf696505f0 Mon Sep 17 00:00:00 2001 From: neo Date: Sat, 11 Feb 2023 16:14:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4windows=20env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/tests.yml | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 65d95c1..82c3d58 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,26 +18,16 @@ jobs: os: - macOS-latest - ubuntu-latest - - windows-latest include: - os: macOS-latest shell: bash - os: ubuntu-latest shell: bash - - os: windows-latest - shell: "wsl-bash {0}" runs-on: ${{matrix.os}} defaults: run: shell: ${{ matrix.shell }} steps: - - name: Set up WSL - if: runner.os == 'windows' - shell: powershell - run: | - git config --global core.autocrlf false - git config --global core.eol lf - - name: Set up Git repository uses: actions/checkout@main @@ -48,14 +38,6 @@ jobs: /Library/Developer/CommandLineTools sudo xcode-select --reset - - name: Install WSL - if: runner.os == 'windows' - uses: Vampire/setup-wsl@9cf1811ad062b08e0106e50f2d9a916ebabae257 - with: - distribution: Ubuntu-22.04 - wsl-shell-user: runner - additional-packages: build-essential - - name: Check Bash 3.x syntax if: runner.os == 'macOS' run: | @@ -80,22 +62,6 @@ jobs: /bin/bash uninstall.sh -f >/dev/null fi - - name: Set up WSL environment - if: runner.os == 'windows' - shell: "wsl-bash -u root {0}" - run: | - echo "runner ALL=(ALL) NOPASSWD:ALL" | tee /etc/sudoers.d/runner - chmod 644 /etc/sudoers.d/runner - echo -e "#!/bin/bash\nexec /home/linuxbrew/.linuxbrew/bin/brew \"\$@\"" | tee /usr/local/bin/brew - chmod 755 /usr/local/bin/brew - - - name: Set up WSL environment 2 - if: runner.os == 'windows' - run: | - echo "HOMEBREW_BREW_GIT_REMOTE=https://github.com/Homebrew/brew" >> $GITHUB_ENV - echo "HOMEBREW_CORE_GIT_REMOTE=https://github.com/Homebrew/homebrew-core" >> $GITHUB_ENV - echo "HOMEBREW_CASK_GIT_REMOTE=https://github.com/Homebrew/homebrew-cask" >> $GITHUB_ENV - - run: /bin/bash -c "$(cat install.sh)" - run: brew config