-
Notifications
You must be signed in to change notification settings - Fork 527
84 lines (69 loc) · 2.54 KB
/
linux-x86_64.yaml
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
name: linux-x86_64
on:
push:
pull_request:
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
jobs:
linux-x86_64:
if: github.ref == 'refs/heads/dev' || github.ref_name == 'dev'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Prepare Source Code
run: |
echo $PATH
env
docker info
id -u
id -g
who
cat /etc/os-release
hostnamectl
uname -s
uname -m
uname -r
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
cat /proc/cpuinfo | grep "cpu cores" | uniq
cat /proc/cpuinfo| grep "processor"| wc -l
lscpu
export IPV6=$(ip -6 address show | grep inet6 | awk '{print $2}' | cut -d'/' -f1 | sed -n '2p')
export IPV4=$(ip -4 address show | 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
sudo apt install -y jq curl
echo ${{ env.BRANCH_NAME }}
echo ${{ github.actor }}
echo ${{ github.repository }}
echo ${{ github.repository_owner }}
echo ${{ github.head_ref }}
echo ${{ github.ref_name }}
# sudo sed -i "[email protected]@azure.archive.ubuntu.com@g" /etc/apt/sources.list
# sudo sed -i "[email protected]@azure.archive.ubuntu.com@g" /etc/apt/sources.list
sudo apt install -y supervisor socat
- name: Prepare Chromium Run Environment
run: |
set -x
curl https://chromium.googlesource.com/chromium/src/+/refs/heads/main/build/install-build-deps.sh?format=TEXT | base64 --decode > install-build-deps.sh
curl https://chromium.googlesource.com/chromium/src/+/refs/heads/main/build/install-build-deps.py?format=TEXT | base64 --decode > install-build-deps.py
sudo python3 install-build-deps.py
- name: Download Chromium
run: |
set -x
bash tools/download-chromium.sh
- name: Download Firefox
shell: bash
run: |
set -x
bash tools/download-firefox-latest-stable.sh
- name: Chromium Load Extension
run: |
set -x
# bash tools/chromium.sh --xvfb
- name: Firefox Load Extension
run: |
set -x
# bash tools/firefox.sh --xvfb