liftinstall/.github/workflows/test-build.yml

59 lines
1.6 KiB
YAML
Raw Normal View History

2019-08-27 05:17:01 +00:00
name: Rust
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
2019-08-27 05:17:01 +00:00
steps:
- uses: hecrj/setup-rust-action@master
with:
rust-version: stable
- name: Install dependencies
2021-10-16 01:10:08 +00:00
run: sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.0-dev libssl-dev libappindicator3-dev
if: runner.os == 'Linux'
2020-05-28 21:37:54 +00:00
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Get cargo cache directory path
id: cargo-cache-dir-path
run: echo "::set-output name=dir::$HOME/.cargo/"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: actions/cache@v2
id: cargo-cache
with:
path: ${{ steps.cargo-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
2019-08-27 05:17:01 +00:00
- uses: actions/setup-node@v1
with:
node-version: '12.x'
2019-08-27 05:17:01 +00:00
- run: npm install -g yarn
- uses: actions/checkout@v2
2021-10-16 05:29:08 +00:00
- name: Download Webview2
run: Invoke-WebRequest -Uri 'https://go.microsoft.com/fwlink/p/?LinkId=2124703' -OutFile 'MicrosoftEdgeWebview2Setup.exe'
if: runner.os == 'Windows'
shell: pwsh
2019-08-27 05:17:01 +00:00
- name: Build
run: cargo build --verbose