Skip to content

Commit

Permalink
Merge pull request #96 from eval-exec/exec/check-cargo-build-examples
Browse files Browse the repository at this point in the history
Add `cargo build --examples` check on CI
  • Loading branch information
quake authored Oct 30, 2023
2 parents f296e77 + 572e5f8 commit 19b6bcb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,24 @@ jobs:
- name: UnitTest
run: make test

build-examples:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-2019 ]
steps:
- uses: actions/checkout@v2
- if: matrix.os == 'windows-2019'
name: Windows Dependencies
run: |
iwr -useb get.scoop.sh -outfile 'install-scoop.ps1'
.\install-scoop.ps1 -RunAsAdmin
echo "LIBCLANG_PATH=$($HOME)/scoop/apps/llvm/current/bin" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "$env:USERPROFILE\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
scoop install llvm yasm
- name: Build Cargo Examples
run: cargo build --examples

linters:
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -64,6 +82,7 @@ jobs:
- unit-test
- linters
- security-audit
- build-examples
runs-on: ubuntu-latest
steps:
- name: CI succeeded
Expand Down

0 comments on commit 19b6bcb

Please sign in to comment.