diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e28006b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: razer-ctl-ci + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + SCCACHE_GHA_ENABLED: "true" + RUSTC_WRAPPER: "sccache" + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Run sccache-cache + uses: mozilla-actions/sccache-action@v0.0.3 + - name: Build Windows + run: cargo build --verbose --release --target x86_64-pc-windows-gnu + - name: Build Linux + run: cargo build --verbose --release + - name: Run sccache stat for check + shell: bash + run: ${SCCACHE_PATH} --show-stats