mirror of
https://github.com/imjasonh/krust
synced 2026-07-08 14:55:35 +00:00
Add tests to pre-commit hooks and simplify CI matrix
- Add cargo test and e2e tests to pre-commit hooks - Temporarily disable macOS CI to focus on Linux - Ensure all tests pass locally before committing
This commit is contained in:
parent
40dbb7053e
commit
5d254c7eca
3 changed files with 15 additions and 14 deletions
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
|
@ -16,7 +16,7 @@ jobs:
|
|||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
os: [ubuntu-latest]
|
||||
rust: [stable, beta]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
@ -30,18 +30,6 @@ jobs:
|
|||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y musl-tools
|
||||
- name: Install cross-compilation tools (macOS)
|
||||
if: matrix.os == 'macos-latest'
|
||||
run: |
|
||||
# Install musl-cross from the correct tap
|
||||
brew install messense/macos-cross-toolchains/x86_64-unknown-linux-musl
|
||||
# Set up cargo config for cross-compilation
|
||||
mkdir -p ~/.cargo
|
||||
echo '[target.x86_64-unknown-linux-musl]' >> ~/.cargo/config.toml
|
||||
echo 'linker = "x86_64-unknown-linux-musl-gcc"' >> ~/.cargo/config.toml
|
||||
- name: Set up Docker (macOS)
|
||||
if: matrix.os == 'macos-latest'
|
||||
uses: douglascamata/setup-docker-macos-action@v1-alpha
|
||||
- name: Cache cargo registry
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue