Refactor GitHub workflows: remove sync_4D-WritePro-Interface.yml, add… #129
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
pull_request: | |
env: | |
DEPENDENCIES_BRANCH: 20.x | |
jobs: | |
build: | |
name: "Build on ${{ matrix.os }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ macOS,Windows] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
lfs: true | |
- name: Check out 4D-SVG | |
uses: actions/checkout@v4 | |
with: | |
repository: 4d/4D-SVG | |
path: Components/4D-SVG.4dbase | |
ref : ${{ env.DEPENDENCIES_BRANCH }} | |
fetch-depth: 0 | |
lfs: true | |
- name: Build | |
uses: 4d/build4d-action@main | |
with: | |
product-line: vcs | |
version: vcs | |
build: official | |
token: ${{ secrets.DLTK }} | |
sync: | |
needs: ["build"] | |
runs-on: [self-hosted, macOS, ARM64] | |
name: Git Repo Sync | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
lfs: true | |
- name: Get Internal Sync action | |
uses: actions/checkout@v4 | |
with: | |
repository: 4d/gitlabsync-action | |
ref: main | |
path: .github/workflows/external/sync | |
token: ${{ secrets.CI_GIT_SYNC }} | |
- id: Sync | |
name: Sync | |
uses: ./.github/workflows/external/sync/ | |
with: | |
target-url: ${{ secrets.TARGET_URL }} | |
target-username: ${{ secrets.TARGET_USERNAME }} | |
target-token: ${{ secrets.TARGET_TOKEN }} |