-
Notifications
You must be signed in to change notification settings - Fork 525
83 lines (67 loc) · 2.24 KB
/
macos-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
name: macos-x86_64
on: [push, pull_request]
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
jobs:
macos-x86_64:
if: 1
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Prepare build environment
run: |
env
echo $HOME
brew config
brew install wget curl
softwareupdate --list --verbose
ls -lh $(xcrun --show-sdk-path)
ifconfig
export IPV6=$(ifconfig en0 | grep "inet6 " | grep -v "inet6 fe80:" | awk '{print $2}' | cut -d'/' -f1 | sed -n '2p')
export IPV4=$(ifconfig en0 | grep "inet " | grep -v 127.0.0 | awk '{print $2}' | cut -d'/' -f1 | sed -n '1p')
echo $IPV4
echo $IPV6
echo "X_IPV6=${IPV6}" >> $GITHUB_ENV
echo "X_IPV4=${IPV4}" >> $GITHUB_ENV
echo ${{ env.BRANCH_NAME }}
echo ${{ github.actor }}
echo ${{ github.repository }}
echo ${{ github.repository_owner }}
echo ${{ github.head_ref }}
echo ${{ github.ref_name }}
- name: Prepare Chromium Run Environment
run: |
set -x
- name: Cache Chromium
uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/var/chrome-mac.zip
${{ github.workspace }}/var/chrome-mac
key: ${{ runner.os }}-x86_64-chromium
- name: Download Chromium
run: |
set -x
if [ ! -f ${{ github.workspace }}/var/chrome-mac.zip ] ; then
bash tools/download-chromium.sh
fi
- name: Cache Firefox
uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/var/firefox.dmg
${{ github.workspace }}/var/firefox/
key: ${{ runner.os }}-x86_64-firefox
- name: Download Firefox
shell: bash
run: |
set -x
if [ ! -f ${{ github.workspace }}/var/firefox.dmg ] ; then
bash tools/download-firefox.sh
fi
- name: show browser version
shell: bash
run: |
ls -lha var/
var/chrome-mac/Chromium.app/Contents/MacOS/Chromium --version
var/firefox/Firefox.app/Contents/MacOS/firefox --version