Skip to content

Commit 32dd643

Browse files
update: github build config.
1 parent 57036c1 commit 32dd643

2 files changed

Lines changed: 19 additions & 31 deletions

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -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:
@@ -82,7 +68,7 @@ jobs:
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+

.github/workflows/pr.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ on:
33
branches:
44
- master
55
- staging
6-
- develop
6+
- develop
7+
78
name: Continuous integration (PR)
9+
810
jobs:
911
version-check:
1012
if: github.base_ref == 'staging' || github.base_ref == 'master'
@@ -21,7 +23,7 @@ jobs:
2123
file: package.json
2224
tagFormat: v${version}-beta
2325
id: version_check_staging
24-
26+
2527
- name: Check Release Version (master)
2628
if: github.base_ref == 'master'
2729
uses: thebongy/version-check@v1
@@ -45,7 +47,7 @@ jobs:
4547
uses: actions-rs/cargo@v1
4648
with:
4749
command: npm ci
48-
50+
4951
- name: Publish to npm
5052
uses: actions-rs/cargo@v1
5153
with:

0 commit comments

Comments
 (0)