File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,22 @@ jobs:
22
22
GITHUB_TOKEN : ${{ github.token }}
23
23
- name : Package release
24
24
id : package
25
- run : |
26
- mkdir cfn-guard-v2-${{ matrix.os }}
27
- cp ./target/release/cfn-guard ./cfn-guard-v2-${{ matrix.os }}/
28
- test -e ./target/release/*.so && cp ./target/release/*.so ./cfn-guard-v2-${{ matrix.os }}/
29
- test -e ./target/release/*.dylib && cp ./target/release/*.dylib ./cfn-guard-v2-${{ matrix.os }}/
30
- cp README.md ./cfn-guard-v2-${{ matrix.os }}/
31
- tar czvf ./cfn-guard-v2-${{ matrix.os }}.tar.gz ./cfn-guard-v2-${{ matrix.os }}
25
+ uses : knicknic/os-specific-run@v1.0.3
26
+ with :
27
+ macos : |
28
+ rustup target add x86_64-apple-darwin
29
+ cargo build --release --target x86_64-apple-darwin
30
+ mkdir cfn-guard-v2-${{ matrix.os }}
31
+ cp ./target/x86_64-apple-darwin/release/cfn-guard ./cfn-guard-v2-${{ matrix.os }}/
32
+ cp README.md ./cfn-guard-v2-${{ matrix.os }}/
33
+ tar czvf ./cfn-guard-v2-${{ matrix.os }}.tar.gz ./cfn-guard-v2-${{ matrix.os }}
34
+ linux : |
35
+ rustup target add x86_64-unknown-linux-musl
36
+ cargo build --release --target x86_64-unknown-linux-musl
37
+ mkdir cfn-guard-v2-${{ matrix.os }}
38
+ cp ./target/x86_64-unknown-linux-musl/release/cfn-guard ./cfn-guard-v2-${{ matrix.os }}/
39
+ cp README.md ./cfn-guard-v2-${{ matrix.os }}/
40
+ tar czvf ./cfn-guard-v2-${{ matrix.os }}.tar.gz ./cfn-guard-v2-${{ matrix.os }}
32
41
- name : Upload Release Asset
33
42
id : upload-release-asset
34
43
uses : actions/upload-release-asset@v1
You can’t perform that action at this time.
0 commit comments