-
Notifications
You must be signed in to change notification settings - Fork 527
116 lines (100 loc) · 3.02 KB
/
windows-x86_64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: windows-x86_64
on: [push, pull_request]
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
jobs:
windows:
if: 1
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@v4
- name: Prepare Chromium Run Environment
run: |
ipconfig /all
- name: Cache Chromium
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}\var\chrome-win.zip
${{ github.workspace }}\var\chrome-win
key: ${{ runner.os }}-x86_64-chromium
- name: Download Chromium
shell: bash
run: |
set -x
if [ ! -f var/chrome-win.zip ] ; then
bash tools/download-chromium.sh
fi
- name: Cache Firefox
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}\var\firefox.exe
key: ${{ runner.os }}-x86_64-firefox
- name: Download Firefox
shell: bash
run: |
set -x
if [ ! -f var/firefox.exe ] ; then
bash tools/download-firefox.sh
fi
- name: install firefox
shell: cmd
run: |
DIR
ECHO %CD%
:: msiexec /package /qn "%CD%\var\firefox.msi"
:: var\firefox.exe /?
:: start var\firefox.exe /S
:: 静默安装 firefox
var\firefox.exe /A /S
timeout /T 30 /NOBREAK
:: show firefox install directory
DIR "C:\Program Files\Mozilla Firefox"
:: show firefox version
"C:\Program Files\Mozilla Firefox\firefox.exe" --version
- name: show browser version
shell: cmd
run: |
DIR var
:: var\chrome-win\chrome.exe --version
"C:\Program Files\Mozilla Firefox\firefox.exe" --version
# https://www.msys2.org/docs/ci/
# https://github.com/marketplace/actions/setup-msys2
# - uses: msys2/setup-msys2@v2
# with:
# msystem: UCRT64
# update: false
# 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: |
REM change CHCP to UTF-8
@chcp 65001>nul
echo foo=bar >> %GITHUB_OUTPUT%