ci: add build step
Description
Add build to CI step
Motivation and Context
Adds a build step on linux to check that all targets build
@@ -121,3 +121,51 @@ jobs:
with:
command: test
# args: --release
+ build:
+ name: build
+ runs-on: ubuntu-18.04
+ steps:
+ - name: checkout
+ uses: actions/checkout@v2
+ - name: Caching
+ uses: actions/cache@v2
+ with:
+ path: |
+ ~/.cargo/registry
+ ~/.cargo/git
+ target
+ key: ${{ runner.os }}-${{ runner.cpu-model }}-${{ env.toolchain }}-${{ hashFiles('**/Cargo.lock') }}
+ - name: ubuntu dependencies
+ run: |
+ sudo apt-get update && \
+ sudo apt-get -y install \
+ build-essential \
+ libgtk-3-dev \
+ libwebkit2gtk-4.0-dev \
+ libsoup2.4-dev \
+ curl \
+ wget \
+ libappindicator3-dev \
+ patchelf \
+ librsvg2-dev \
+ libprotobuf-dev \
+ protobuf-compiler
+
+ - name: Compile NPM
+ run: |
+ cd applications/launchpad/gui-vue
+ npm install
+ npm run build
+
+ - name: toolchain
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: ${{ env.toolchain }}
+ components: clippy, rustfmt
+ override: true
+
+ - name: cargo build
+ uses: actions-rs/cargo@v1
+ with:
+ command: check
+ args: --release --all-targets
