-
Notifications
You must be signed in to change notification settings - Fork 17
51 lines (43 loc) · 1.33 KB
/
build-sample-on-pr.yml
File metadata and controls
51 lines (43 loc) · 1.33 KB
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
name: build sample project
on: pull_request
jobs:
build-sample:
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: install 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: build
run: |
cargo build --example sample
- name: Upload Artifacts (Windows)
if: matrix.platform == 'windows-latest'
uses: actions/upload-artifact@v1
with:
name: sample-windows
path: target/debug/examples/sample.exe
- name: Upload Artifacts (Ubuntu)
if: matrix.platform == 'ubuntu-latest'
uses: actions/upload-artifact@v1
with:
name: sample-ubuntu
path: target/debug/examples/sample
- name: Upload Artifacts (MacOS)
if: matrix.platform == 'macos-latest'
uses: actions/upload-artifact@v1
with:
name: sample-macOS
path: target/debug/examples/sample