|
7 | 7 | release:
|
8 | 8 | types: [published]
|
9 | 9 |
|
| 10 | +env: |
| 11 | + CARGO_UNSTABLE_EDITION2024: true |
| 12 | + RUSTUP_TOOLCHAIN: nightly |
| 13 | + |
10 | 14 | jobs:
|
11 | 15 | build-and-publish:
|
12 | 16 | name: Build and publish
|
|
20 | 24 | uses: actions-rs/toolchain@v1
|
21 | 25 | with:
|
22 | 26 | profile: minimal
|
23 |
| - toolchain: 1.82.0 # Use at least 1.82.0 to handle icu_collections dependency |
| 27 | + toolchain: nightly |
24 | 28 | override: true
|
| 29 | + components: rustfmt, clippy |
| 30 | + |
| 31 | + - name: Install latest Cargo |
| 32 | + run: | |
| 33 | + rustup update |
| 34 | + rustup default nightly |
| 35 | + cargo --version |
25 | 36 |
|
26 | 37 | - name: Install OpenSSL
|
27 | 38 | run: |
|
@@ -98,13 +109,22 @@ jobs:
|
98 | 109 |
|
99 | 110 | steps:
|
100 | 111 | - uses: actions/checkout@v3
|
| 112 | + with: |
| 113 | + ref: ${{ github.event.release.tag_name || github.ref }} |
101 | 114 |
|
102 | 115 | - name: Setup Rust
|
103 | 116 | uses: actions-rs/toolchain@v1
|
104 | 117 | with:
|
105 | 118 | profile: minimal
|
106 |
| - toolchain: 1.82.0 # Use at least 1.82.0 to handle icu_collections dependency |
| 119 | + toolchain: nightly |
107 | 120 | override: true
|
| 121 | + components: rustfmt, clippy |
| 122 | + |
| 123 | + - name: Install latest Cargo |
| 124 | + run: | |
| 125 | + rustup update |
| 126 | + rustup default nightly |
| 127 | + cargo --version |
108 | 128 |
|
109 | 129 | - name: Check MacOS architecture
|
110 | 130 | if: matrix.os == 'macos-latest'
|
@@ -152,9 +172,11 @@ jobs:
|
152 | 172 | name: Create GitHub Release
|
153 | 173 | runs-on: ubuntu-latest
|
154 | 174 | needs: build-binaries
|
155 |
| - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') # Only create release when triggered by tag push |
| 175 | + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') |
156 | 176 | steps:
|
157 | 177 | - uses: actions/checkout@v3
|
| 178 | + with: |
| 179 | + ref: ${{ github.event.release.tag_name || github.ref }} |
158 | 180 |
|
159 | 181 | - name: Download all artifacts
|
160 | 182 | uses: actions/download-artifact@v3
|
|
0 commit comments