Skip to content

Commit 8809bc5

Browse files
committed
Workflows adjusted for artifact upload.
1 parent 9bc4ab8 commit 8809bc5

File tree

3 files changed

+36
-35
lines changed

3 files changed

+36
-35
lines changed

.github/workflows/main.yml

+24-4
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,52 @@ jobs:
1111
build-linux:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- name: Build
1616
run: cargo build --release --verbose
1717
- name: Run tests
1818
run: cargo test --verbose
19+
- uses: actions/upload-artifact@v4
20+
with:
21+
name: deoptimizer-linux-x86_64
22+
path: ./target/release/deoptimizer
23+
retention-days: 5
1924
build-windows:
2025
runs-on: windows-latest
2126
steps:
22-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2328
- name: Build
2429
run: cargo build --release --verbose
2530
- name: Run tests
2631
run: cargo test --verbose
32+
- uses: actions/upload-artifact@v4
33+
with:
34+
name: deoptimizer-windows-x86_64
35+
path: ./target/release/deoptimizer.exe
36+
retention-days: 5
2737
build-macos-x86:
2838
runs-on: macos-13
2939
steps:
30-
- uses: actions/checkout@v3
40+
- uses: actions/checkout@v4
3141
- name: Build
3242
run: cargo build --release --verbose
3343
- name: Run tests
3444
run: cargo test --verbose
45+
- uses: actions/upload-artifact@v4
46+
with:
47+
name: deoptimizer-macos-x86_64
48+
path: ./target/release/deoptimizer
49+
retention-days: 5
3550
build-macos-arm64:
3651
runs-on: macos-14
3752
steps:
38-
- uses: actions/checkout@v3
53+
- uses: actions/checkout@v4
3954
- name: Build
4055
run: cargo build --release --verbose
4156
- name: Run tests
4257
run: cargo test --verbose
58+
- uses: actions/upload-artifact@v4
59+
with:
60+
name: deoptimizer-macos-aarch64
61+
path: ./target/release/deoptimizer
62+
retention-days: 5

.github/workflows/on_demand_build.yml

-23
This file was deleted.

mkrelease.sh

+12-8
Original file line numberDiff line numberDiff line change
@@ -69,25 +69,29 @@ print_status "[$(date --rfc-3339=date)] Packaging new release for version $VERSI
6969
mkdir -p "$RELEASE_DIR" &> "$ERR_LOG"
7070

7171
tar czvf "$RELEASE_DIR/deoptimizer_linux_x86_64_v$VERSION.tar.gz"\
72-
"./target/x86_64-unknown-linux-musl/release/deoptimizer" &> "$ERR_LOG" || print_fatal "Linux x86_64 release failed!"
72+
-C "./target/x86_64-unknown-linux-musl/release/"\
73+
"deoptimizer" &> "$ERR_LOG" || print_fatal "Linux x86_64 release failed!"
7374

7475
tar czvf "$RELEASE_DIR/deoptimizer_linux_i686_v$VERSION.tar.gz"\
75-
"./target/i686-unknown-linux-musl/release/deoptimizer" &> "$ERR_LOG" || print_fatal "Linux i686 release failed!"
76+
-C "./target/i686-unknown-linux-musl/release/"\
77+
"deoptimizer" &> "$ERR_LOG" || print_fatal "Linux i686 release failed!"
7678

7779
tar czvf "$RELEASE_DIR/deoptimizer_linux_aarch64_v$VERSION.tar.gz"\
78-
"./target/aarch64-unknown-linux-musl/release/deoptimizer" &> "$ERR_LOG" || print_fatal "Linux aarch64 release failed!"
80+
-C "./target/aarch64-unknown-linux-musl/release/"\
81+
"deoptimizer" &> "$ERR_LOG" || print_fatal "Linux aarch64 release failed!"
7982

8083
tar czvf "$RELEASE_DIR/deoptimizer_windows_x86_64_v$VERSION.tar.gz"\
81-
"./target/x86_64-pc-windows-gnu/release/deoptimizer.exe" &> "$ERR_LOG" || print_fatal "Windows x86_64 release failed!"
84+
-C "./target/x86_64-pc-windows-gnu/release/"\
85+
"deoptimizer.exe" &> "$ERR_LOG" || print_fatal "Windows x86_64 release failed!"
8286

8387
tar czvf "$RELEASE_DIR/deoptimizer_windows_i686_v$VERSION.tar.gz"\
84-
"./target/i686-pc-windows-gnu/release/deoptimizer.exe" &> "$ERR_LOG" || print_fatal "Windows i686 release failed!"
85-
88+
-C "./target/i686-pc-windows-gnu/release/"\
89+
"deoptimizer.exe" &> "$ERR_LOG" || print_fatal "Windows i686 release failed!"
8690

8791

8892
print_good "All done!"
8993

90-
cd $RELEASE_DIR
94+
cd "$RELEASE_DIR" || exit
9195
echo -e "\n\`\`\`"
92-
sha1sum *
96+
sha1sum ./*
9397
echo -e "\`\`\`\n"

0 commit comments

Comments
 (0)