Skip to content

Fixed issues when compiling the program #37

Fixed issues when compiling the program

Fixed issues when compiling the program #37

name: Test
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
jobs:
test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update && \
sudo apt-get install -y --no-install-recommends libgtk-3-dev
- name: Install nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-04-25
override: true
components: rustfmt, clippy
- name: Check
uses: actions-rs/cargo@v1
with:
command: check
- name: Fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Install nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-04-25
override: true
components: rustfmt, clippy
- name: Check
uses: actions-rs/cargo@v1
with:
command: check
- name: Fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-04-25
override: true
components: rustfmt, clippy
- name: Check
uses: actions-rs/cargo@v1
with:
command: check
- name: Fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy