Skip to content

Commit b0979a7

Browse files
committed
Update workflow
1 parent 0be5a26 commit b0979a7

File tree

1 file changed

+34
-29
lines changed

1 file changed

+34
-29
lines changed

.github/workflows/deploy.yml

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,44 @@
11
on: push
22
name: Deploy
33
jobs:
4-
linux:
5-
name: Linux 64-bits
6-
runs-on: ubuntu-latest
4+
build:
5+
name: Build
6+
strategy:
7+
matrix:
8+
os: [ubuntu-latest, macos-latest, windows-latest]
9+
runs-on: ${{ matrix.os }}
710
steps:
8-
- uses: actions/checkout@v2
9-
- uses: actions-rs/toolchain@v1
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Set Rust toolchain
14+
uses: actions-rs/toolchain@v1
1015
with:
1116
toolchain: stable
12-
- uses: actions-rs/cargo@v1
17+
- name: Build
18+
uses: actions-rs/cargo@v1
1319
with:
1420
command: build
1521
args: --release
16-
mac:
17-
name: macOS
18-
runs-on: mac-latest
22+
release:
23+
name: Make release
24+
needs: [linux, mac, windows]
1925
steps:
20-
- uses: actions/checkout@v2
21-
- uses: actions-rs/toolchain@v1
22-
with:
23-
toolchain: stable
24-
- uses: actions-rs/cargo@v1
25-
with:
26-
command: build
27-
args: --release
28-
windows:
29-
name: Windows 64-bits
30-
runs-on: windows-latest
31-
steps:
32-
- uses: actions/checkout@v2
33-
- uses: actions-rs/toolchain@v1
34-
with:
35-
toolchain: stable
36-
- uses: actions-rs/cargo@v1
37-
with:
38-
command: build
39-
args: --release
26+
- name: Prepare files
27+
if: false
28+
#if: runner.os != "Windows"
29+
run: |
30+
mkdir dist
31+
cd dist
32+
cp ../target/release/rust-deploy-test .
33+
cp -r ../assets .
34+
- name: Prepare files
35+
if: false
36+
#if: runner.os == "Windows"
37+
run: |
38+
mkdir dist
39+
cd dist
40+
copy ..\target\release\rust-deploy-test.exe .
41+
copy ..\assets .
42+
- name: Release
43+
if: false
44+
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)