Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ name: CI

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy

- name: Cache cargo registry
uses: actions/cache@v4
with:
Expand All @@ -30,16 +30,16 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-

- name: Check formatting
run: cargo fmt -- --check

- name: Run clippy
run: cargo clippy --lib --tests -- -D warnings -A clippy::too_many_arguments -A clippy::items-after-test-module -A clippy::type-complexity -A clippy::should-implement-trait -A renamed_and_removed_lints -A clippy::collapsible-if -A clippy::len-zero -A clippy::assertions-on-constants -A dead-code

- name: Run tests
run: cargo test --lib --tests

- name: Run integration tests
run: cargo test --test crd_compatibility --test resource_registry --test model_compatibility --test field_extraction

Expand All @@ -48,13 +48,13 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Cache cargo registry
uses: actions/cache@v4
with:
Expand All @@ -67,13 +67,12 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-

- name: Build
run: cargo build --release

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: flux9s-${{ matrix.os }}
path: target/release/flux9s*

16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ jobs:
target: aarch64-apple-darwin
artifact_name: flux9s
asset_name: flux9s-macos-aarch64.tar.gz
- os: windows-latest
target: x86_64-pc-windows-msvc
artifact_name: flux9s.exe
asset_name: flux9s-windows-x86_64.zip
# - os: windows-latest
# target: x86_64-pc-windows-msvc
# artifact_name: flux9s.exe
# asset_name: flux9s-windows-x86_64.zip

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -103,10 +103,10 @@ jobs:
run: |
tar -czf ${{ matrix.asset_name }} -C target/${{ matrix.target }}/release ${{ matrix.artifact_name }}

- name: Create archive (Windows)
if: matrix.os == 'windows-latest'
run: |
Compress-Archive -Path target/${{ matrix.target }}/release/${{ matrix.artifact_name }} -DestinationPath ${{ matrix.asset_name }}
# - name: Create archive (Windows)
# if: matrix.os == 'windows-latest'
# run: |
# Compress-Archive -Path target/${{ matrix.target }}/release/${{ matrix.artifact_name }} -DestinationPath ${{ matrix.asset_name }}

- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down