1
1
name : Release
2
2
3
3
permissions :
4
- contents : read
4
+ contents : write
5
5
6
6
on :
7
7
push :
@@ -23,12 +23,10 @@ defaults:
23
23
24
24
jobs :
25
25
create-release :
26
- runs-on : ubuntu-20.04
27
- timeout-minutes : 60
28
- permissions :
29
- contents : write
26
+ name : Create GitHub release
27
+ runs-on : ubuntu-latest
30
28
steps :
31
- - uses : actions/checkout@v3
29
+ - uses : actions/checkout@v4
32
30
with :
33
31
persist-credentials : false
34
32
- name : Install Rust
@@ -39,45 +37,43 @@ jobs:
39
37
changelog : CHANGELOG.md
40
38
title : $version
41
39
branch : master
42
- token : ${{ secrets.GITHUB_TOKEN }}
40
+ env :
41
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
42
44
43
upload-assets :
45
44
name : ${{ matrix.target }}
46
45
needs :
47
46
- create-release
48
47
strategy :
49
48
matrix :
50
- # When updating this list, the reminder to update the target list in ci.yml.
51
49
include :
52
50
- target : x86_64-unknown-linux-gnu
51
+ os : ubuntu-latest
52
+ build_tool : cross
53
53
- target : x86_64-unknown-linux-musl
54
+ os : ubuntu-latest
55
+ build_tool : cross
54
56
- target : x86_64-apple-darwin
55
- os : macos-11
57
+ os : macos-latest
58
+ build_tool : cargo
56
59
- target : x86_64-pc-windows-msvc
57
60
os : windows-2019
61
+ build_tool : cargo
58
62
runs-on : ${{ matrix.os || 'ubuntu-20.04' }}
59
- timeout-minutes : 60
60
- permissions :
61
- contents : write
62
63
steps :
63
- - uses : actions/checkout@v3
64
+ - uses : actions/checkout@v4
64
65
with :
65
66
persist-credentials : false
66
67
- name : Install Rust
67
68
run : rustup update stable --no-self-update
68
- - uses : taiki-e/setup-cross-toolchain-action@v1
69
- with :
70
- target : ${{ matrix.target }}
71
- if : (matrix.os == '' || startsWith(matrix.os, 'ubuntu')) && !contains(matrix.target, '-musl')
72
- - uses : taiki-e/install-action@cross
73
- if : contains(matrix.target, '-musl')
74
- - run : echo "RUSTFLAGS=${RUSTFLAGS} -C target-feature=+crt-static" >>"${GITHUB_ENV}"
75
- if : endsWith(matrix.target, 'windows-msvc')
76
69
- uses : taiki-e/upload-rust-binary-action@v1
77
70
with :
78
- bin : abc,dynamics
71
+ bin : hsc
79
72
target : ${{ matrix.target }}
73
+ build_tool : ${{ matrix.build_tool }}
80
74
tar : unix
81
75
zip : windows
82
- archive : ecdna-$target
83
- token : ${{ secrets.GITHUB_TOKEN }}
76
+ env :
77
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
78
+ CARGO_PROFILE_RELEASE_CODEGEN_UNITS : 1
79
+ CARGO_PROFILE_RELEASE_LTO : true
0 commit comments