Skip to content

Commit 736942b

Browse files
authored
Update release.yml
1 parent 7cc9fd0 commit 736942b

File tree

1 file changed

+20
-24
lines changed

1 file changed

+20
-24
lines changed

.github/workflows/release.yml

+20-24
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Release
22

33
permissions:
4-
contents: read
4+
contents: write
55

66
on:
77
push:
@@ -23,12 +23,10 @@ defaults:
2323

2424
jobs:
2525
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
3028
steps:
31-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3230
with:
3331
persist-credentials: false
3432
- name: Install Rust
@@ -39,45 +37,43 @@ jobs:
3937
changelog: CHANGELOG.md
4038
title: $version
4139
branch: master
42-
token: ${{ secrets.GITHUB_TOKEN }}
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4342

4443
upload-assets:
4544
name: ${{ matrix.target }}
4645
needs:
4746
- create-release
4847
strategy:
4948
matrix:
50-
# When updating this list, the reminder to update the target list in ci.yml.
5149
include:
5250
- target: x86_64-unknown-linux-gnu
51+
os: ubuntu-latest
52+
build_tool: cross
5353
- target: x86_64-unknown-linux-musl
54+
os: ubuntu-latest
55+
build_tool: cross
5456
- target: x86_64-apple-darwin
55-
os: macos-11
57+
os: macos-latest
58+
build_tool: cargo
5659
- target: x86_64-pc-windows-msvc
5760
os: windows-2019
61+
build_tool: cargo
5862
runs-on: ${{ matrix.os || 'ubuntu-20.04' }}
59-
timeout-minutes: 60
60-
permissions:
61-
contents: write
6263
steps:
63-
- uses: actions/checkout@v3
64+
- uses: actions/checkout@v4
6465
with:
6566
persist-credentials: false
6667
- name: Install Rust
6768
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')
7669
- uses: taiki-e/upload-rust-binary-action@v1
7770
with:
78-
bin: abc,dynamics
71+
bin: hsc
7972
target: ${{ matrix.target }}
73+
build_tool: ${{ matrix.build_tool }}
8074
tar: unix
8175
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

Comments
 (0)