diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..62fa5ce --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,64 @@ +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 }} \ No newline at end of file diff --git a/.github/workflows/sync_4D-WritePro-Interface.yml b/.github/workflows/sync_4D-WritePro-Interface.yml deleted file mode 100644 index 495ebd4..0000000 --- a/.github/workflows/sync_4D-WritePro-Interface.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: GitlabSync - -on: - push: - delete: - -jobs: - sync: - runs-on: [self-hosted, macOS, ARM64] - name: Git Repo Sync - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - lfs: true - - uses: wangchucheng/git-repo-sync@v0.1.0 - with: - target-url: ${{ secrets.TARGET_URL }} - target-username: ${{ secrets.TARGET_USERNAME }} - target-token: ${{ secrets.TARGET_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/sync_on_deleted.yml b/.github/workflows/sync_on_deleted.yml new file mode 100644 index 0000000..f2de386 --- /dev/null +++ b/.github/workflows/sync_on_deleted.yml @@ -0,0 +1,30 @@ +name: Delete + +on: + delete + +jobs: + sync: + 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 + uses: ./.github/workflows/external/sync/ + with: + target-url: ${{ secrets.TARGET_URL }} + target-username: ${{ secrets.TARGET_USERNAME }} + target-token: ${{ secrets.TARGET_TOKEN }} +