Skip to content

Commit

Permalink
Update build.yml to improve checkout steps and add environment variab…
Browse files Browse the repository at this point in the history
…les for dependencies
  • Loading branch information
pfhuillet committed Dec 17, 2024
1 parent 4a3dae4 commit b2bd8cd
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,40 @@ on:
push:
pull_request:

env:
DEPENDENCIES_BRANCH: main

jobs:
build:
name: "Build on ${{ matrix.os }}"
strategy:
fail-fast: false
matrix:
os: [ macOS, Windows, ubuntu-24.04 ]
os: [ macOS,Windows,ubuntu-24.04 ]
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/SVG.4dbase
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]
Expand All @@ -35,7 +45,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
lfs: true

- name: Get Internal Sync action
uses: actions/checkout@v4
Expand All @@ -44,10 +54,11 @@ jobs:
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 }}
target-token: ${{ secrets.TARGET_TOKEN }}

0 comments on commit b2bd8cd

Please sign in to comment.