Skip to content

Commit

Permalink
Add Check missing libs CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zetanumbers committed Sep 27, 2023
1 parent 8112f33 commit 8964f6a
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,67 @@ jobs:
sha: ${{ github.sha }}


missing-libs:
name: Check missing libs
runs-on: ubuntu-latest
needs: install-vitasdk
timeout-minutes: 10
steps:
- name: Set commit status as pending
uses: myrotvorets/set-commit-status-action@v1.1.7
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: pending
context: Check missing libs
sha: ${{ github.sha }}

- uses: actions/checkout@v3
with:
submodules: true

- name: Restore vitasdk cache
uses: actions/cache/restore@v3
with:
path: /opt/vitasdk
key: ${{ runner.os }}-vitasdk
fail-on-cache-miss: true

- name: Cache LLVM and Clang
id: cache-llvm
uses: actions/cache@v3
with:
path: |
${{ runner.temp }}/llvm
key: llvm

- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "16"
directory: ${{ runner.temp }}/llvm
cached: ${{ steps.cache-llvm.outputs.cache-hit }}

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Run build-util
env:
VITASDK: /opt/vitasdk
run: |
cargo run --profile build-util -p vitasdk-sys-build-util -- stub-libs --missing-libs --fail-if-any
- name: Set final commit status
uses: myrotvorets/set-commit-status-action@v1.1.7
if: always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
context: Check missing libs
sha: ${{ github.sha }}

doc:
name: Doc
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ members = ["examples/*"]
[profile.release]
lto = true

[profile.build-util]
inherits = "dev"
debug = false

[build-dependencies]
bindgen = "0.68.1"
vitasdk-sys-build-util = { path = "build-util", features = ["link-visitor"] }
Expand Down

0 comments on commit 8964f6a

Please sign in to comment.