2019-10-05 20:52:19 +00:00
|
|
|
name: Extensions
|
|
|
|
|
|
|
|
on:
|
2024-08-17 15:50:38 +00:00
|
|
|
push:
|
2019-10-05 20:52:19 +00:00
|
|
|
paths:
|
2024-08-17 15:50:38 +00:00
|
|
|
- 'extension/**'
|
|
|
|
- 'Cargo.toml'
|
|
|
|
- 'Cargo.lock'
|
|
|
|
- '.github/workflows/extensions.yml'
|
2019-10-05 20:52:19 +00:00
|
|
|
|
|
|
|
jobs:
|
2024-08-17 15:50:38 +00:00
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout the source code
|
|
|
|
uses: actions/checkout@master
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
rustup toolchain update stable --no-self-update
|
|
|
|
rustup default stable
|
|
|
|
rustup component add clippy rustfmt
|
|
|
|
- name: Run rustfmt
|
|
|
|
run: cargo fmt -- --check
|
|
|
|
- name: Run clippy
|
|
|
|
run: cargo clippy --all -- -Dwarnings
|
|
|
|
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: xd009642/tarpaulin
|
|
|
|
options: --security-opt seccomp=unconfined
|
|
|
|
steps:
|
|
|
|
- name: Checkout the source code
|
|
|
|
uses: actions/checkout@master
|
|
|
|
- name: Test & Coverage
|
|
|
|
run: cargo tarpaulin --verbose --no-default-features --workspace --timeout 240
|
|
|
|
|
2019-10-05 20:52:19 +00:00
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-08-17 15:50:38 +00:00
|
|
|
arrays: [
|
|
|
|
os: { tag: "windows-latest", target: "i686-pc-windows-msvc" },
|
|
|
|
os: { tag: "windows-latest", target: "x86_64-pc-windows-msvc" },
|
|
|
|
]
|
|
|
|
runs-on: ${{ matrix.arrays.os.tag }}
|
2019-10-05 20:52:19 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout the source code
|
2023-10-26 17:24:01 +00:00
|
|
|
uses: actions/checkout@v4
|
2024-08-17 15:50:38 +00:00
|
|
|
- name: Install stable Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
target: ${{ matrix.arrays.os.target }}
|
|
|
|
toolchain: stable
|
|
|
|
default: true
|
|
|
|
- name: Rust Cache
|
|
|
|
uses: Swatinem/rust-cache@v2
|
2019-10-05 20:52:19 +00:00
|
|
|
- name: Build
|
2024-08-17 15:50:38 +00:00
|
|
|
run: cargo build --verbose
|
|
|
|
- name: Upload
|
|
|
|
uses: actions/upload-artifact@v2
|
2019-10-05 20:52:19 +00:00
|
|
|
with:
|
2024-08-17 15:50:38 +00:00
|
|
|
name: ${{ matrix.arrays.os.target }}
|
|
|
|
path: target/debug/ace.dll
|
|
|
|
if-no-files-found: error
|
|
|
|
retention-days: 30
|