-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.43 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Release
on:
release:
types: [published]
jobs:
windows-release:
runs-on: windows-latest
steps:
- uses: actions/cache@v3
with:
path: |
/Users/runneradmin/AppData/Local/bazelisk
/Users/runneradmin/.cache/bazel-disk-cache
key: ${{runner.os}}-bazel-cache
- uses: actions/checkout@v3
- run: bazel sync --config=ci --only=crate_index
env: {CARGO_BAZEL_REPIN: 'true'}
- run: bazel build --config=ci -c opt //ecsact_rust_codegen:ecsact_rust_codegen_bin
- uses: softprops/action-gh-release@v1
with:
fail_on_unmatched_files: true
files: bazel-bin/ecsact_rust_codegen/ecsact_rust_codegen_bin.dll
linux-release:
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v3
with:
path: |
~/.cache/bazelisk
~/.cache/bazel-disk-cache
key: ${{runner.os}}-bazel-cache
- uses: actions/checkout@v3
- run: bazel sync --config=ci --only=crate_index
env: {CARGO_BAZEL_REPIN: 'true'}
- run: bazel build --config=ci -c opt //ecsact_rust_codegen:ecsact_rust_codegen_bin
- run: cp bazel-bin/ecsact_rust_codegen/libecsact_rust_codegen_bin.so ecsact_rust_codegen_bin.so
- uses: softprops/action-gh-release@v1
with:
fail_on_unmatched_files: true
files: ecsact_rust_codegen_bin.so