@@ -8,9 +8,8 @@ permissions:
8
8
contents : write
9
9
10
10
jobs :
11
-
12
11
check_release :
13
- if : " contains(github.event.release.tag_name, '-dev')" # continue if the tag ends with -dev
12
+ if : " contains(github.event.release.tag_name, '-dev')" # continue if the tag ends with -dev
14
13
runs-on : ubuntu-latest
15
14
steps :
16
15
- name : Echo tag
@@ -24,11 +23,43 @@ jobs:
24
23
strategy :
25
24
matrix :
26
25
include :
27
- - { runner: macos-latest, osname: macOS, arch: amd64, target: x86_64-apple-darwin, command: build }
28
- - { runner: macos-latest, osname: macOS, arch: arm64, target: aarch64-apple-darwin, command: build }
29
- - { runner: ubuntu-latest, osname: linux, arch: amd64, target: x86_64-unknown-linux-gnu, command: build }
30
- - { runner: ubuntu-latest, osname: linux, arch: arm64, target: aarch64-unknown-linux-gnu, command: build, build_args: --no-default-features }
31
- - { runner: windows-latest, osname: windows, arch: amd64, target: x86_64-pc-windows-msvc, command: build, extension: ".exe" }
26
+ - {
27
+ runner : macos-latest,
28
+ osname : macOS,
29
+ arch : amd64,
30
+ target : x86_64-apple-darwin,
31
+ command : build,
32
+ }
33
+ - {
34
+ runner : macos-latest,
35
+ osname : macOS,
36
+ arch : arm64,
37
+ target : aarch64-apple-darwin,
38
+ command : build,
39
+ }
40
+ - {
41
+ runner : ubuntu-latest,
42
+ osname : linux,
43
+ arch : amd64,
44
+ target : x86_64-unknown-linux-gnu,
45
+ command : build,
46
+ }
47
+ - {
48
+ runner : ubuntu-latest,
49
+ osname : linux,
50
+ arch : arm64,
51
+ target : aarch64-unknown-linux-gnu,
52
+ command : build,
53
+ build_args : --no-default-features,
54
+ }
55
+ - {
56
+ runner : windows-latest,
57
+ osname : windows,
58
+ arch : amd64,
59
+ target : x86_64-pc-windows-msvc,
60
+ command : build,
61
+ extension : " .exe" ,
62
+ }
32
63
# - { runner: windows-latest, osname: windows, arch: arm64, target: aarch64-pc-windows-msvc, command: build, extension: ".exe", toolchain: nightly }
33
64
34
65
steps :
@@ -44,31 +75,29 @@ jobs:
44
75
with :
45
76
command : ${{ matrix.command }}
46
77
target : ${{ matrix.target }}
47
- args : " --locked --release ${{ matrix.build_args }}"
78
+ args : " --bin dkn-compute -- locked --release ${{ matrix.build_args }}"
48
79
strip : true
49
80
50
81
- name : Prepare Release File
51
82
run : |
52
83
# move the binary
53
84
mv target/${{ matrix.target }}/release/dkn-compute${{ matrix.extension }} ./dkn-compute-binary-${{ matrix.osname }}-${{ matrix.arch }}${{ matrix.extension }}
54
-
55
85
56
86
- name : Upload Launch Artifacts
57
87
uses : actions/upload-artifact@v4
58
88
with :
59
89
name : dkn-compute-binary-${{ matrix.osname }}-${{ matrix.arch }}
60
90
path : dkn-compute-binary-${{ matrix.osname }}-${{ matrix.arch }}${{ matrix.extension }}
61
91
62
-
63
92
release :
64
93
needs : build
65
94
runs-on : ubuntu-latest
66
-
95
+
67
96
steps :
68
97
- name : Checkout code
69
98
uses : actions/checkout@v3
70
99
with :
71
- fetch-depth : 0 # Fetch all tags and history
100
+ fetch-depth : 0 # Fetch all tags and history
72
101
73
102
- name : Download Launch Artifacts
74
103
uses : actions/download-artifact@v4
0 commit comments