Skip to content

Commit 9fe4623

Browse files
committed
common dist
1 parent 1599fdb commit 9fe4623

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,24 @@ jobs:
1212
steps:
1313
- uses: softprops/action-gh-release@v1
1414

15+
common-dist:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/cache@v3
19+
with:
20+
path: |
21+
~/.cache/bazelisk
22+
~/.cache/bazel-disk-cache
23+
key: ${{runner.os}}-bazel-cache
24+
- uses: actions/checkout@v3
25+
- run: bazel run --config=ci //:copy_dist_include
26+
- uses: actions/upload-artifact@v3
27+
with:
28+
name: common-dist
29+
path: dist
1530
windows-x64-binaries:
1631
runs-on: windows-latest
1732
steps:
18-
- name: Get Home Directory
19-
id: get_home_dir
20-
run: echo "::set-output name=dir::$HOME"
2133
- uses: actions/cache@v3
2234
with:
2335
path: |
@@ -51,12 +63,16 @@ jobs:
5163
linux-x64-archive:
5264
runs-on: ubuntu-latest
5365
needs:
66+
- common-dist
5467
- linux-x64-binaries
5568
steps:
69+
- uses: actions/download-artifact@v3
70+
with:
71+
name: common-dist
5672
- uses: actions/download-artifact@v3
5773
with:
5874
name: linux-x64-binaries
59-
- run: tar -czf ecsact_sdk_${{github.ref_name}}_linux_x64.tar.gz bin include
75+
- run: tar -czf ecsact_sdk_${{github.ref_name}}_linux_x64.tar.gz bin include share
6076
- uses: actions/upload-artifact@v3
6177
with:
6278
name: linux-x64-archive
@@ -65,13 +81,17 @@ jobs:
6581
windows-x64-archive:
6682
runs-on: ubuntu-latest
6783
needs:
84+
- common-dist
6885
- windows-x64-binaries
6986
steps:
87+
- uses: actions/download-artifact@v3
88+
with:
89+
name: common-dist
7090
- uses: actions/download-artifact@v3
7191
with:
7292
name: windows-x64-binaries
7393
- run: >
74-
zip -r ecsact_sdk_${{github.ref_name}}_windows_x64.zip bin include
94+
zip -r ecsact_sdk_${{github.ref_name}}_windows_x64.zip bin include share
7595
- uses: actions/upload-artifact@v3
7696
with:
7797
name: windows-x64-archive

0 commit comments

Comments
 (0)