-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (56 loc) · 2.02 KB
/
test-build-on-push.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
name: "test-on-push"
on:
push:
branches:
- master
jobs:
test-tauri:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
env:
working-directory: .
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 16
- uses: webfactory/ssh-agent@v0.5.4
with:
ssh-private-key: ${{ secrets.PRIVATE_SSH_KEY }}
- name: install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: install webkit2gtk (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0
- name: Install libpcap (ubuntu)
if: matrix.platform == 'ubuntu-latest'
run: sudo apt-get install libpcap-dev
- name: Install libpcap (macos)
if: matrix.platform == 'macos-latest'
run: brew install libpcap
- name: Update cargo config to use Git CLI (windows)
if: matrix.platform == 'windows-latest'
run: Set-Content -Path $env:USERPROFILE\.cargo\config.toml "[net]`ngit-fetch-with-cli = true"
- name: Install WinPcap and WinPcap 4.1.2 Developer's Pack (windows)
if: matrix.platform == 'windows-latest'
run: |
cinst -y winpcap --version 4.1.3.20161116
(New-Object System.Net.WebClient).DownloadFile("https://www.winpcap.org/install/bin/WpdPack_4_1_2.zip", "C:/WpdPack.zip")
Expand-Archive -LiteralPath C:/WpdPack.zip -DestinationPath C:/
echo "LIB=C:/WpdPack/Lib/x64" >> $env:GITHUB_ENV
- name: install app dependencies and build it
run: yarn && yarn build
working-directory: ${{env.working-directory}}/frontend
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
projectPath: ${{env.working-directory}}