Skip to content

Commit

Permalink
workflows updated
Browse files Browse the repository at this point in the history
  • Loading branch information
RainerZ committed Dec 11, 2024
1 parent e56b9a3 commit 4343955
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 76 deletions.
68 changes: 0 additions & 68 deletions .github/workflow

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: XCP_lite Default

on:
workflow_dispatch:
push:
branches: ["**"]
tags: ["**"]

concurrency:
group: ${{ (github.ref == 'refs/heads/main') && 'main' || format('{0}-{1}', github.workflow, github.ref) }} # concurrency does not include main branch
cancel-in-progress: true

jobs:
lint:
name: Lint
runs-on: [ubuntu-22.04]
steps:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v1
with:
bins: cargo-make
components: clippy
- name: Run linter
run: cargo clippy
build:
name: Build
runs-on: ${{ matrix.os }}
needs: [lint]
strategy:
matrix:
os: [ubuntu-22.04, macos-13, macos-14, windows-2022]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v1
with:
components: rustfmt
- name: Build binary
run: |
cargo build --verbose
test:
name: Test
runs-on: ${{ matrix.os }}
needs: [build]
strategy:
matrix:
os: [ubuntu-22.04, macos-13, macos-14, windows-2022]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v1
with:
bins: cargo-make, cargo-nextest
- name: Run tests
run: cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture

11 changes: 3 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@ xcp_client.a2l
xcp_client_autodetect.a2l
test_single_thread.a2l
test_multi_thread.a2l
test_tokio_single_thread.a2l
test_tokio_multi_thread.a2l

tokio_demo_autodetect.a2l
xcp_benchmark.a2l

hello_xcp.a2l
tokio_demo.a2l
rayon_demo.a2l
Expand All @@ -38,7 +35,5 @@ mandelbrot.a2l
mandelbrot.png
multi_thread_demo.a2l
single_thread_demo.a2l
/examples/point_cloud_demo/CANape/~CANapeCurrentCfg.gvc
/.github/workflows/default.yml
/multi_thread_demo_autodetect.a2l
/examples/tokio_demo/tokio_demo_autodetect.a2l
multi_thread_demo_autodetect.a2l

0 comments on commit 4343955

Please sign in to comment.