Skip to content

Commit 0944d4b

Browse files
update publish.yml
1 parent 0092880 commit 0944d4b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,14 @@ jobs:
3030
- name: Compile wrapper on Linux / macOS
3131
if: startsWith(runner.os, 'Linux') || startsWith(runner.os, 'macOS')
3232
run: |
33-
mkdir tmp-build
34-
cd tmp-build
35-
cmake $GITHUB_WORKSPACE/pythonfmu3/pythonfmu-export -DCMAKE_BUILD_TYPE=Release
36-
cmake --build .
37-
cd ..
33+
docker build -f DockerFile -t pythonfmu3-wrapper --target build .
34+
35+
- name: Create container and copy out artifact
36+
if : startsWith(runner.os, 'Linux') || startsWith(runner.os, 'macOS')
37+
run: |
38+
docker create --name extract pythonfmu3-wrapper
39+
docker cp extract:/io/pythonfmu3/resources $GITHUB_WORKSPACE/pythonfmu3
40+
docker rm extract
3841
- name: Archive wrapper library
3942
uses: actions/upload-artifact@v4
4043
with:

0 commit comments

Comments
 (0)