ci: add CI pipeline for FFI code
This commit is contained in:
@@ -30,8 +30,25 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- 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: Tag and push OCCT image
|
||||
if: github.event_name != 'pull_request'
|
||||
run: |
|
||||
docker tag occt-builder:latest ghcr.io/${{ github.repository }}/occt-builder:latest
|
||||
docker push ghcr.io/${{ github.repository }}/occt-builder:latest
|
||||
|
||||
Reference in New Issue
Block a user