diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 886e298..77afa8a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,8 +8,8 @@ on: env: CARGO_TERM_COLOR: always - #SCCACHE_GHA_ENABLED: "true" - #RUSTC_WRAPPER: "sccache" + SCCACHE_GHA_ENABLED: "true" + RUSTC_WRAPPER: "sccache" jobs: build: @@ -17,18 +17,18 @@ jobs: steps: - uses: actions/checkout@v4 - #- name: Run sccache-cache - # uses: mozilla-actions/sccache-action@v0.0.3 - #- name: Install Windows toolchain - # uses: actions-rs/toolchain@v1 - # with: - # toolchain: stable - # override: false - # target: x86_64-pc-windows-gnu - #- name: Build for Windows - # run: cargo build --verbose --release --target x86_64-pc-windows-gnu + - name: Run sccache-cache + uses: mozilla-actions/sccache-action + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install --no-install-recommends -y libudev-dev libxdo-dev librust-atk-dev libgtk-3-dev gcc-mingw-w64 + + - name: Install target for Windows + run: rustup target add x86_64-pc-windows-gnu + - name: Run clippy + run: cargo clippy --all-targets --all-features + - name: Build for Windows + run: cargo build --verbose --release --target x86_64-pc-windows-gnu - name: Build for Linux run: cargo build --verbose --release - #- name: Run sccache stat for check - # shell: bash - # run: ${SCCACHE_PATH} --show-stats