Skip to content

Commit 24b6e3f

Browse files
committed
Add build and sync workflows; remove deprecated GitlabSync workflow
1 parent 73558eb commit 24b6e3f

File tree

3 files changed

+82
-20
lines changed

3 files changed

+82
-20
lines changed

.github/workflows/build.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
name: "Build on ${{ matrix.os }}"
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [ macOS,Windows]
13+
runs-on: ${{ matrix.os }}
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
lfs: true
20+
21+
- name: Build
22+
uses: 4d/build4d-action@main
23+
with:
24+
product-line: vcs
25+
version: vcs
26+
build: official
27+
token: ${{ secrets.DLTK }}
28+
sync:
29+
needs: ["build"]
30+
runs-on: [self-hosted, macOS, ARM64]
31+
name: Git Repo Sync
32+
steps:
33+
- uses: actions/checkout@v4
34+
with:
35+
fetch-depth: 0
36+
lfs: true
37+
38+
- name: Get Internal Sync action
39+
uses: actions/checkout@v4
40+
with:
41+
repository: 4d/gitlabsync-action
42+
ref: main
43+
path: .github/workflows/external/sync
44+
token: ${{ secrets.CI_GIT_SYNC }}
45+
46+
- id: Sync
47+
uses: ./.github/workflows/external/sync/
48+
with:
49+
target-url: ${{ secrets.TARGET_URL }}
50+
target-username: ${{ secrets.TARGET_USERNAME }}
51+
target-token: ${{ secrets.TARGET_TOKEN }}
52+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Delete
2+
3+
on:
4+
delete
5+
6+
jobs:
7+
sync:
8+
runs-on: [self-hosted, macOS, ARM64]
9+
name: Git Repo Sync
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
lfs: true
15+
16+
- name: Get Internal Sync action
17+
uses: actions/checkout@v4
18+
with:
19+
repository: 4d/gitlabsync-action
20+
ref: main
21+
path: .github/workflows/external/sync
22+
token: ${{ secrets.CI_GIT_SYNC }}
23+
24+
- id: Sync
25+
uses: ./.github/workflows/external/sync/
26+
with:
27+
target-url: ${{ secrets.TARGET_URL }}
28+
target-username: ${{ secrets.TARGET_USERNAME }}
29+
target-token: ${{ secrets.TARGET_TOKEN }}
30+

.github/workflows/synch_4D-NetKit.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)