5151 runs-on : ${{ matrix.os }}
5252 steps :
5353 # Largely inspired by https://github.com/starship/starship/blob/35a0a20f5c4fea6a08e1b91ff631b089eef8fc50/.github/workflows/deploy.yml
54- - uses : actions/checkout@v3
54+ - uses : actions/checkout@v4
5555 - uses : dtolnay/rust-toolchain@stable
5656 with :
5757 targets : ${{ matrix.target }}
9999 tar czvf ../../../${{ matrix.name }} rnacos .env
100100 cd -
101101 - name : Upload binary artifacts
102- uses : actions/upload-artifact@v3
102+ uses : actions/upload-artifact@v4
103103 with :
104104 name : binaries
105105 path : |
@@ -123,7 +123,7 @@ jobs:
123123 RUSTUP_HOME : /root/.rustup
124124 CARGO_HOME : /root/.cargo
125125 steps :
126- - uses : actions/checkout@v3
126+ - uses : actions/checkout@v4
127127 - run : rustup target add --toolchain stable ${{ matrix.platform.target }}
128128 if : matrix.platform.target != 'powerpc64le-unknown-linux-musl' && matrix.platform.target != 's390x-unknown-linux-gnu'
129129 - name : Build
@@ -134,7 +134,7 @@ jobs:
134134 cp doc/conf/.env.example target/${{ matrix.platform.target }}/release/.env
135135 tar czvf ${{ matrix.platform.name }} -C target/${{ matrix.platform.target }}/release rnacos .env
136136 - name : Upload binary artifacts
137- uses : actions/upload-artifact@v3
137+ uses : actions/upload-artifact@v4
138138 with :
139139 name : binaries
140140 path : |
@@ -146,7 +146,7 @@ jobs:
146146 if : " startsWith(github.ref, 'refs/tags/')"
147147 needs : [ build ]
148148 steps :
149- - uses : actions/checkout@v3
149+ - uses : actions/checkout@v4
150150 - uses : dtolnay/rust-toolchain@stable
151151 - name : cargo login
152152 run : cargo login ${{ secrets.CRATES_IO_TOKEN }}
@@ -164,7 +164,7 @@ jobs:
164164 if : " startsWith(github.ref, 'refs/tags/')"
165165 needs : [ build, build-musl ]
166166 steps :
167- - uses : actions/download-artifact@v3
167+ - uses : actions/download-artifact@v4
168168 with :
169169 name : binaries
170170 # 暂时移除签名(生成的文件比较多)
0 commit comments