mirror of
https://github.com/an-anime-team/sleepy-launcher.git
synced 2024-11-21 12:17:35 +03:00
40 lines
No EOL
747 B
YAML
40 lines
No EOL
747 B
YAML
name: Check source code
|
|
|
|
on:
|
|
push:
|
|
branches: [ "next" ]
|
|
paths: [ "src/**" ]
|
|
|
|
pull_request:
|
|
branches: [ "main", "next" ]
|
|
paths: [ "src/**" ]
|
|
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
check_source_code:
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
image: ubuntu:devel
|
|
env:
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
steps:
|
|
- name: Install dependencies
|
|
run: |
|
|
apt update
|
|
apt install -y build-essential libgtk-4-dev libadwaita-1-dev git curl cmake
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Check source code
|
|
run: cargo check --verbose |