@@ -13,44 +13,30 @@ jobs:
1313 strategy :
1414 matrix :
1515 os : [windows-latest, macos-latest, ubuntu-latest]
16- rust :
16+ node :
1717 - stable
18- - beta
19- - nightly
18+ - lts
2019 fail-fast : false
2120
2221 steps :
2322 - uses : actions/checkout@v2
2423
25- - name : Install Rust toolchain
26- uses : actions-rs/toolchain@v1
27- with :
28- profile : minimal
29- toolchain : ${{ matrix.rust }}
30- override : true
31- components : rustfmt, clippy
32-
33- - name : Cargo build
34- uses : actions-rs/cargo@v1
35- with :
36- command : build
37- args : --release --all
38-
3924 - name : Upload Artifact (Linux/MacOS)
4025 uses : actions/upload-artifact@v1
41- if : matrix.rust == 'stable' && matrix. os != 'windows-latest'
26+ if : matrix.os != 'windows-latest'
4227 with :
4328 name : juno-${{matrix.os}}
4429 path : target/release/juno
45-
30+
4631 - name : Upload Artifact (Windows)
4732 uses : actions/upload-artifact@v1
48- if : matrix.rust == 'stable' && matrix. os == 'windows-latest'
33+ if : matrix.os == 'windows-latest'
4934 with :
5035 name : juno-${{matrix.os}}
5136 path : target/release/juno.exe
5237
53- release-master : # Publish release on push to master
38+ # Publish release on push to master
39+ release-master :
5440 if : github.ref == 'refs/heads/master'
5541 runs-on : ubuntu-latest
5642 needs : build
@@ -61,10 +47,10 @@ jobs:
6147 - name : Check Release Version
6248 uses : thebongy/version-check@v1
6349 with :
64- file : Cargo.toml
50+ file : package.json
6551 tagFormat : v${version}
6652 id : version_check
67-
53+
6854 - name : Download Windows Artifact
6955 uses : actions/download-artifact@v1
7056 with :
8268 with :
8369 name : juno-ubuntu-latest
8470 path : release/linux
85-
71+
8672 - name : Rename Artifacts
8773 run : |
8874 mv release/windows/juno.exe release/windows/juno-${{steps.version_check.outputs.releaseVersion}}-windows.exe
@@ -110,10 +96,10 @@ jobs:
11096 - name : Check Release Version
11197 uses : thebongy/version-check@v1
11298 with :
113- file : Cargo.toml
99+ file : package.json
114100 tagFormat : v${version}-beta
115101 id : version_check
116-
102+
117103 - name : Download Windows Artifact
118104 uses : actions/download-artifact@v1
119105 with :
@@ -131,7 +117,7 @@ jobs:
131117 with :
132118 name : juno-ubuntu-latest
133119 path : release/linux
134-
120+
135121 - name : Rename Artifacts
136122 run : |
137123 mv release/windows/juno.exe release/windows/juno-${{steps.version_check.outputs.releaseVersion}}-windows.exe
@@ -146,4 +132,4 @@ jobs:
146132 prerelease : true
147133 env :
148134 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
149-
135+
0 commit comments