Skip to content

v3 版本 对firefox 提供基础功能支持 (#192) #18

v3 版本 对firefox 提供基础功能支持 (#192)

v3 版本 对firefox 提供基础功能支持 (#192) #18

name: windows-x86_64
on: [push, pull_request]
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
jobs:
windows:
if: github.ref == 'refs/heads/dev' || github.ref_name == 'dev'
runs-on: windows-latest
steps:
- name: Prepare git
run: |
git config --global core.autocrlf false
git config --global core.eol lf
env
ipconfig
uname -a
pwd
ipconfig /all
- uses: actions/checkout@v3
- name: Prepare Chromium Run Environment
run: |
ipconfig /all
- name: Download Chromium
shell: bash
run: |
set -x
bash tools/download-chromium.sh
- name: Download Firefox
shell: bash
run: |
set -x
bash tools/download-firefox.sh
# https://www.msys2.org/docs/ci/
# https://github.com/marketplace/actions/setup-msys2
- uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install: git mingw-w64-ucrt-x86_64-gcc
- name: CI-Build
shell: msys2 {0}
run: |
echo 'Running in MSYS2!'
echo "C:\\msys64\\usr\\bin" >> $GITHUB_PATH
echo "C:\\msys64\\mingw64\\bin" >> $GITHUB_PATH
echo "PKG_CONFIG_PATH=/mingw64/lib/pkgconfig" >> $GITHUB_ENV
- name: test powershell use msys2
shell: powershell
run: msys2 -c 'uname -a'
- name: test cmd use msys2
shell: cmd
run: msys2 -c 'uname -a'
- name: Test
shell: cmd
run: |
@chcp 65001>nul
echo foo=bar >> %GITHUB_OUTPUT%