2022-07-10 10:54:16 +10:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-08-01 12:23:24 +10:00
|
|
|
branches: [master, trunk]
|
2022-07-10 10:54:16 +10:00
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
fmt:
|
|
|
|
name: Check formatting
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
|
|
|
components: rustfmt
|
|
|
|
override: true
|
|
|
|
- name: Check formatting
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: fmt
|
|
|
|
args: -- --check
|
2022-08-15 06:40:38 +10:00
|
|
|
test:
|
|
|
|
name: Check that examples build
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: test
|
2022-08-01 12:23:24 +10:00
|
|
|
build:
|
|
|
|
name: Check that the code builds
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: build
|
|
|
|
examples:
|
|
|
|
name: Check that examples build
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
2022-08-01 14:06:49 +10:00
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: build
|
2022-08-15 05:48:50 +10:00
|
|
|
args: --features webview --example webview_custom_protocol
|
2022-08-01 12:23:24 +10:00
|
|
|
# fails because it needs uikit, which is not
|
|
|
|
# building for me
|
|
|
|
#- uses: actions-rs/cargo@v1
|
|
|
|
# with:
|
|
|
|
# command: build
|
|
|
|
# args: --example ios-beta
|