Skip to content

Commit

Permalink
ci: add build step (#3678)
Browse files Browse the repository at this point in the history
Description
---
Add build to CI step

Motivation and Context
---
Adds a build step on linux to check that all targets build
  • Loading branch information
stringhandler authored Jan 4, 2022
1 parent 95af1cf commit f44369a
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f44369a

Please sign in to comment.