pr: add Github workflows for building OCCT and unit testing (#1)
ci: run unit test for occt on push and PR
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
name: OCCT CI
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build-wrappers:
|
||||
name: Build OCCT wrappers
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Make script executable
|
||||
run: chmod +x ./ci/scripts/occt.sh
|
||||
|
||||
- name: Build OCCT and run tests
|
||||
run: ./ci/scripts/occt.sh --unit-testing
|
||||
|
||||
- name: Summary
|
||||
if: always()
|
||||
run: |
|
||||
echo "=== CI Summary ==="
|
||||
echo "Build: ${{ steps.build.outcome }}"
|
||||
echo "Tests: ${{ steps.test.outcome }}"
|
||||
echo "=================="
|
||||
Reference in New Issue
Block a user