Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 305288b

Browse files
committedApr 8, 2025·
wip
1 parent dac7c1e commit 305288b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎.github/workflows/build.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@ on: [push, pull_request]
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8-
container: zephyrprojectrtos/ci:latest
98
env:
109
CMAKE_PREFIX_PATH: /opt/toolchains
1110
CCACHE_IGNOREOPTIONS: -specs=*
11+
REPO: ${{ github.event.pull_request && github.event.pull_request.head.html_url || github.repository }}
12+
BRANCH: ${{ github.event.pull_request && github.event.pull_request.head.ref || github.ref }}
13+
CTX: ${{ toJson(github) }}
1214
steps:
1315
- name: Initialize
1416
run: |
17+
echo "$CTX"
1518
mkdir build && cd build
16-
west init -m https://github.com/${{ github.repository }} --mr ${{ env.GITHUB_REF }}
19+
west init -m https://github.com/${{ env.REPO }} --mr ${{ env.BRANCH }}
1720
west update -o=--filter=tree:0
1821
1922
- name: ccache

0 commit comments

Comments
 (0)
Please sign in to comment.