@@ -2,12 +2,14 @@ name: Build
22
33on :
44 push :
5- branches : ['**'] # Only run on branches
6- tags-ignore : ['*'] # Ignore all tags
75 paths-ignore : ['**.md', '.vscode/**','docs/**','pictures/**']
6+ branches :
7+ - main # Only run on branches
8+ tags-ignore : ['*'] # Ignore all tags
89 pull_request :
910 types : [opened, synchronize, reopened]
1011 paths-ignore : ['**.md', '.vscode/**','docs/**','pictures/**']
12+ workflow_dispatch :
1113
1214env :
1315 TOOL4D_PRODUCT_LINE : ' 20Rx'
2325 strategy :
2426 fail-fast : false
2527 matrix :
26- os : [ windows-latest,macos-latest ]
28+ os : [ macOS,Windows ]
2729
2830
2931 runs-on : ${{ matrix.os }}
3537 # Disabling shallow clone is recommended for improving relevancy of reporting
3638 fetch-depth : 0
3739
38-
39- - name : Checkout build4d-action
40- uses : actions/checkout@v5
41- with :
42- repository : 4d/build4d-action
43- token : ${{ secrets.GH_4D_ACTION_TOKEN }}
44- path : .github/actions/build4d-action
45-
46- - name : Checkout tool4d-action
47- uses : actions/checkout@v5
48- with :
49- repository : 4d/tool4d-action
50- token : ${{ secrets.GH_4D_ACTION_TOKEN }}
51- path : .github/actions/tool4d-action
52-
53- - name : Checkout setup4d-action
54- uses : actions/checkout@v5
55- with :
56- repository : 4d/setup4d-action
57- token : ${{ secrets.GH_4D_ACTION_TOKEN }}
58- path : .github/actions/setup4d-action
59-
60-
6140 - name : 🏗️ Build ${{ github.event.repository.name }}
62- uses : ./.github/actions/ build4d-action
41+ uses : 4d/ build4d-action@main
6342 with :
6443 project : ${{ github.workspace }}/${{ github.event.repository.name }}/Project/${{ github.event.repository.name }}.4DProject
6544 product-line : ${{env.TOOL4D_PRODUCT_LINE}}
7352 run : |
7453 cp -r ${{ github.workspace }}/${{ github.event.repository.name }}/build/ ${{ github.workspace }}/${{ github.event.repository.name }}_UnitTests/Components
7554
55+ - name : Checkout setup4d-action
56+ uses : actions/checkout@v4
57+ with :
58+ repository : 4d/setup4d-action
59+ token : ${{ secrets.GH_4D_ACTION_TOKEN }}
60+ path : .github/actions/setup4d-action
61+
7662 - name : Download Setup4d
7763 uses : ./.github/actions/setup4d-action
7864 with :
8672 mv ${{ github.workspace }}/.github/actions/setup4d-action/work/ ${{ github.workspace }}/${{ github.event.repository.name }}_UnitTests/Work/
8773
8874 - name : 🏗️ Build ${{ github.event.repository.name }}_UnitTests
89- uses : ./.github/actions/ build4d-action
75+ uses : 4d/ build4d-action@main
9076 with :
9177 project : ${{ github.workspace }}/${{ github.event.repository.name }}_UnitTests/Project/${{ github.event.repository.name }}_UnitTests.4DProject
9278 product-line : ${{env.TOOL4D_PRODUCT_LINE}}
0 commit comments