4 files changed
+17
-12
.github/workflows/ci.yml
+1
-1
@@ -1,4 +1,4 @@
1
-name: CI
1
+name: Tests
2
3
# This workflow run tests for each push
4
.github/workflows/release-crate.yml
renamed
+2
-2
@@ -1,6 +1,6 @@
1
-name: Release to Crates.io
1
+name: Crates.io Release
2
3
-on:
3
+on:
4
workflow_dispatch:
5
6
env:
.github/workflows/release-github.yml
renamed
+8
-3
@@ -1,5 +1,10 @@
1
-name: Build
2
-on: [push]
1
+name: GitHub Release
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - "v*.*.*"
7
+
8
env:
9
# The smbcloud-cli binary name
10
PROJECT_NAME: smb
@@ -67,6 +72,6 @@ jobs:
72
mv "${BIN_OUTPUT}" "${DEST_DIR}/${BIN_RELEASE}"
73
- name: Release
74
uses: softprops/action-gh-release@v2
70
- #if: github.ref_type == 'tag'
75
+ if: github.ref_type == 'tag'
76
with:
77
files: release/*
.github/workflows/release-npm.yml
+6
-6
@@ -1,4 +1,4 @@
1
-name: Publish to npm
1
+name: NPM Release
2
3
on:
4
push:
@@ -26,7 +26,7 @@ jobs:
26
- {
27
NAME: linux-x64-glibc,
28
OS: ubuntu-20.04,
29
- TOOLCHAIN: stable,
29
+ TOOLCHAIN: 1.87,
30
TARGET: x86_64-unknown-linux-gnu,
31
}
32
# Cannot cross-compile for now
@@ -39,25 +39,25 @@ jobs:
39
- {
40
NAME: win32-x64-msvc,
41
OS: windows-2022,
42
- TOOLCHAIN: stable,
42
+ TOOLCHAIN: 1.87,
43
TARGET: x86_64-pc-windows-msvc,
44
}
45
- {
46
NAME: win32-arm64-msvc,
47
OS: windows-2022,
48
- TOOLCHAIN: stable,
48
+ TOOLCHAIN: 1.87,
49
TARGET: aarch64-pc-windows-msvc,
50
}
51
- {
52
NAME: darwin-x64,
53
OS: macos-11,
54
- TOOLCHAIN: stable,
54
+ TOOLCHAIN: 1.87,
55
TARGET: x86_64-apple-darwin,
56
}
57
- {
58
NAME: darwin-arm64,
59
OS: macos-11,
60
- TOOLCHAIN: stable,
60
+ TOOLCHAIN: 1.87,
61
TARGET: aarch64-apple-darwin,
62
}
63
steps: