-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (32 loc) · 997 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Generate And Upload Artifacts To Release
on:
release:
types: [created]
jobs:
generate:
name: Create release-artifacts
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@master
- name: Generate the first artifact
run: cargo build --release
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-pc-windows-gnu
override: true
- name: Generate the second artifact
uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --target x86_64-pc-windows-gnu
- run: ls -R
- name: Upload the artifacts
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: "./target/release/blackcube-rs ./target/x86_64-pc-windows-gnu/release/blackcube-rs.exe"