Skip to content
This repository was archived by the owner on Aug 9, 2022. It is now read-only.

Commit f86cf72

Browse files
authored
fix: fix warnings and improve ci (#57)
1 parent 17057c8 commit f86cf72

File tree

5 files changed

+125
-107
lines changed

5 files changed

+125
-107
lines changed

.github/workflows/release.yml

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
# Sequence of patterns matched against refs/tags
66
tags:
7-
- "v*" # Any tag will cause release
7+
- "v*" # Version tags
88

99
env:
1010
CARGO_TERM_COLOR: always
@@ -32,32 +32,27 @@ jobs:
3232
id: get-tag
3333
uses: olegtarasov/get-tag@v2.1
3434

35-
echo-info:
36-
name: Echo Info
37-
needs: release-info
38-
runs-on: ubuntu-latest
39-
steps:
40-
- name: Echo Info
41-
run: |
42-
echo elara-kv-${{ needs.release-info.outputs.tag }}
43-
echo url:${{ needs.release-info.outputs.upload_url }}
44-
4535
release-linux:
4636
name: Release on Ubuntu
4737
# we need to know the upload URL
4838
needs: release-info
4939
runs-on: ubuntu-latest
5040
steps:
41+
- uses: actions/checkout@v1
5142
- uses: actions-rs/toolchain@v1
5243
with:
5344
toolchain: stable
5445
override: true
55-
- uses: actions/checkout@v1
5646
- name: Build
5747
run: |
5848
git submodule update --init --remote
5949
cargo build --release
6050
51+
- name: print release-info
52+
run: |
53+
echo release version: elara-kv-${{ needs.release-info.outputs.tag }}
54+
echo release url: ${{ needs.release-info.outputs.upload_url }}
55+
6156
- name: Upload linux version
6257
uses: actions/upload-release-asset@v1.0.1
6358
env:
@@ -67,3 +62,29 @@ jobs:
6762
asset_path: ./target/release/elara-kv
6863
asset_name: elara-kv-${{ needs.release-info.outputs.tag }}-x86_64-ubuntu
6964
asset_content_type: application/octet-stream
65+
66+
release-windows:
67+
name: Release on Windows
68+
# we need to know the upload URL
69+
needs: release-info
70+
runs-on: windows-latest
71+
steps:
72+
- uses: actions-rs/toolchain@v1
73+
with:
74+
toolchain: stable
75+
override: true
76+
- uses: actions/checkout@v1
77+
- name: Build
78+
run: |
79+
git submodule update --init --remote
80+
cargo build --release
81+
82+
- name: Upload linux version
83+
uses: actions/upload-release-asset@v1.0.1
84+
env:
85+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86+
with:
87+
upload_url: ${{ needs.release-info.outputs.upload_url }}
88+
asset_path: ./target/release/elara-kv
89+
asset_name: elara-kv-${{ needs.release-info.outputs.tag }}-x86_64-windows
90+
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)