Skip to content

Commit b208683

Browse files
committed
fully correct and rename files in CI/CD
1 parent c9a4dfa commit b208683

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ jobs:
5959
files: |
6060
./artifacts/windows/i686-win7-windows-msvc/release/rust_g.dll
6161
./artifacts/windows/i686-win7-windows-msvc/release/rust_g.pdb
62-
./artifacts/windows-x64/x86_64-pc-windows-msvc/release/rust_g.dll#rust_g_x64.dll
63-
./artifacts/windows-x64/x86_64-pc-windows-msvc/release/rust_g.pdb#rust_g_x64.pdb
62+
./artifacts/windows-x64/x86_64-pc-windows-msvc/release/rust_g64.dll
63+
./artifacts/windows-x64/x86_64-pc-windows-msvc/release/rust_g64.pdb
6464
./artifacts/linux/i686-unknown-linux-gnu/release/librust_g.so
65-
./artifacts/linux-x64/x86_64-unknown-linux-gnu/release/librust_g.so#librust_g_x64.so
65+
./artifacts/linux-x64/x86_64-unknown-linux-gnu/release/librust_g64.so
6666
./artifacts/windows/rust_g.dm

.github/workflows/rust.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
target/i686-win7-windows-msvc/release/rust_g.dll
3636
target/i686-win7-windows-msvc/release/rust_g.pdb
3737
target/rust_g.dm
38-
38+
3939
build-windows-x64:
4040
runs-on: windows-latest
4141
steps:
@@ -47,7 +47,7 @@ jobs:
4747
components: clippy, rustfmt, rust-src
4848

4949
- uses: Swatinem/rust-cache@v2
50-
50+
5151
- name: x64 Clippy (all features)
5252
run: cargo clippy -Z build-std --target x86_64-pc-windows-msvc --features all,allow_non_32bit --locked -- -D warnings
5353

@@ -57,12 +57,17 @@ jobs:
5757
- name: x64 Build (release) (default features)
5858
run: cargo build -Z build-std --target x86_64-pc-windows-msvc --features allow_non_32bit --locked --release
5959

60+
- name: Rename x64 artifacts
61+
run: |
62+
Move-Item -Path "target\x86_64-pc-windows-msvc\release\rust_g.dll" -Destination "target\x86_64-pc-windows-msvc\release\rust_g64.dll"
63+
Move-Item -Path "target\x86_64-pc-windows-msvc\release\rust_g.pdb" -Destination "target\x86_64-pc-windows-msvc\release\rust_g64.pdb"
64+
6065
- uses: actions/upload-artifact@v4
6166
with:
6267
name: Windows Build x64
6368
path: |
64-
target/x86_64-pc-windows-msvc/release/rust_g.dll
65-
target/x86_64-pc-windows-msvc/release/rust_g.pdb
69+
target/x86_64-pc-windows-msvc/release/rust_g64.dll
70+
target/x86_64-pc-windows-msvc/release/rust_g64.pdb
6671
target/rust_g.dm
6772
6873
build-linux:
@@ -129,7 +134,7 @@ jobs:
129134
targets: x86_64-unknown-linux-gnu
130135

131136
- uses: Swatinem/rust-cache@v2
132-
137+
133138
- name: x64 Check (all features)
134139
run: cargo check --target x86_64-unknown-linux-gnu --locked --features all,allow_non_32bit
135140

@@ -139,9 +144,12 @@ jobs:
139144
- name: x64 Build (release) (default features)
140145
run: cargo build --target x86_64-unknown-linux-gnu --locked --features allow_non_32bit --release
141146

147+
- name: Rename x64 artifacts
148+
run: mv target/x86_64-unknown-linux-gnu/release/librust_g.so target/x86_64-unknown-linux-gnu/release/librust_g64.so
149+
142150
- uses: actions/upload-artifact@v4
143151
with:
144152
name: Linux Build x64
145153
path: |
146-
target/x86_64-unknown-linux-gnu/release/librust_g.so
154+
target/x86_64-unknown-linux-gnu/release/librust_g64.so
147155
target/rust_g.dm

0 commit comments

Comments
 (0)