Skip to content

Commit 85a7867

Browse files
committed
New release
1 parent 04fc6a2 commit 85a7867

File tree

6 files changed

+82
-607
lines changed

6 files changed

+82
-607
lines changed

.github/workflows/cd.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: "Create release"
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
workflow_dispatch:
8+
9+
10+
11+
jobs:
12+
run-tests:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
- name: Run tests
18+
run: cargo test --verbose --all
19+
20+
create-release:
21+
runs-on: ubuntu-latest
22+
needs: [run-tests]
23+
outputs:
24+
upload_url: ${{ steps.create-release-step.outputs.upload_url }}
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v2
28+
- name: Create release
29+
id: create-release-step
30+
uses: marvinpinto/action-automatic-releases@latest
31+
with:
32+
repo_token: ${{ secrets.GITHUB_TOKEN }}
33+
draft: true
34+
files: |
35+
LICENSE
36+
build-releases:
37+
runs-on: ${{ matrix.os }}
38+
needs: [create-release]
39+
strategy:
40+
fail-fast: false
41+
matrix:
42+
os: [windows-latest, ubuntu-latest, macos-latest]
43+
include:
44+
- os: windows-latest
45+
extension: .exe
46+
name: windows
47+
- os: ubuntu-latest
48+
extension: ''
49+
name: linux
50+
- os: macos-latest
51+
extension: ''
52+
name: macos_x86
53+
54+
steps:
55+
- name: Checkout code
56+
uses: actions/checkout@v2
57+
- name: Build For Target
58+
run: cargo build --release --verbose
59+
- name: Upload Artifact
60+
uses: actions/upload-release-asset@v1
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
with:
64+
upload_url: ${{ needs.create-release.outputs.upload_url }}
65+
asset_path: target/release/interpreter${{ matrix.extension }}
66+
asset_name: interpreter_${{ matrix.name }}${{ matrix.extension }}
67+
asset_content_type: application/octet-stream

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust
1+
name: CI
22

33
on:
44
push:

0 commit comments

Comments
 (0)