Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

append tag only to artifact archive #301

Merged
merged 2 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,17 +188,14 @@ jobs:
wget https://github.com/KhronosGroup/OpenCL-SDK/releases/download/v2023.04.17/OpenCL-SDK-v2023.04.17-Win-x64.zip
unzip -j OpenCL-SDK-v2023.04.17-Win-x64.zip OpenCL-SDK-v2023.04.17-Win-x64/lib/OpenCL.lib

- name: Version suffix (for release only)
id: version
run: echo "suffix=${{ github.ref_type == 'tag' && '-' || ''}}${{ github.ref_type == 'tag' && github.ref_name || ''}}" >> $GITHUB_OUTPUT
- name: Build clib
run: cargo build -p post-cbindings --profile release-clib
env:
RUSTFLAGS: ${{ matrix.rustflags }}
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: libpost-${{ matrix.artifact-name }}${{ steps.version.outputs.suffix }}
name: libpost-${{ matrix.artifact-name }}
path: |
ffi/post.h
target/release-clib/${{ matrix.dylib }}
Expand All @@ -212,7 +209,7 @@ jobs:
- name: Archive profiler artifacts
uses: actions/upload-artifact@v3
with:
name: profiler-${{ matrix.artifact-name }}${{ steps.version.outputs.suffix }}
name: profiler-${{ matrix.artifact-name }}
path: |
target/release/profiler${{ matrix.os == 'windows-2019' && '.exe' || '' }}
if-no-files-found: error
Expand All @@ -227,7 +224,7 @@ jobs:
- name: Archive service artifacts
uses: actions/upload-artifact@v3
with:
name: post-service-${{ matrix.artifact-name }}${{ steps.version.outputs.suffix }}
name: post-service-${{ matrix.artifact-name }}
path: |
target/release/post-service${{ matrix.os == 'windows-2019' && '.exe' || '' }}
if-no-files-found: error
Expand Down Expand Up @@ -259,8 +256,10 @@ jobs:
run: >
mkdir ./assets;
for dir in ./artifacts/*/; do
zip -o -j -r "./assets/$(basename "$dir").zip" "$dir";
zip -o -j -r "./assets/$(basename "$dir")-$TAG.zip" "$dir";
done
env:
TAG: ${{ github.ref_name }}
- name: Upload Release Assets
run: gh release upload $TAG ./assets/*.zip
env:
Expand Down
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ members = [

[package]
name = "post-rs"
version = "0.7.10"
version = "0.7.11"
edition = "2021"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion certifier/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "certifier"
version = "0.7.10"
version = "0.7.11"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion ffi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "post-cbindings"
version = "0.7.10"
version = "0.7.11"
edition = "2021"


Expand Down
2 changes: 1 addition & 1 deletion initializer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "initializer"
version = "0.7.10"
version = "0.7.11"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion profiler/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "profiler"
version = "0.7.10"
version = "0.7.11"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion scrypt-ocl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "scrypt-ocl"
version = "0.7.10"
version = "0.7.11"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion service/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "service"
version = "0.7.10"
version = "0.7.11"
edition = "2021"

[[bin]]
Expand Down
Loading