Skip to content

Commit f342191

Browse files
committed
Merge branch 'feature/rust'
2 parents 7d9d9ff + d68a056 commit f342191

28 files changed

+2466
-599
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
on:
3+
release:
4+
types: [created]
5+
6+
jobs:
7+
release:
8+
name: release ${{ matrix.target }}
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
include:
14+
- target: x86_64-pc-windows-gnu
15+
archive: zip
16+
- target: x86_64-unknown-linux-musl
17+
archive: tar.gz tar.xz
18+
- target: x86_64-apple-darwin
19+
archive: zip tar.gz tar.xz
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: rust-build/rust-build.action@latest
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
25+
RUSTTARGET: ${{ matrix.target }}
26+
ARCHIVE_TYPES: ${{ matrix.archive }}

.github/workflows/rust.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
pull_request:
8+
branches:
9+
- master
10+
- main
11+
workflow_dispatch: {}
12+
13+
env:
14+
CACHE_VERSION: v1
15+
16+
jobs:
17+
rust:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: actions-rs/toolchain@v1
22+
with:
23+
toolchain: stable
24+
target: x86_64-unknown-linux-musl
25+
- uses: actions/cache@v2
26+
with:
27+
key: "${{ runner.os }}-rust-${{ env.CACHE_VERSION }}-${{ hashFiles('Cargo.lock') }}-${{ github.sha }}"
28+
restore-keys: |
29+
${{ runner.os }}-rust-${{ env.CACHE_VERSION }}-${{ hashFiles('Cargo.lock') }}
30+
${{ runner.os }}-rust-${{ env.CACHE_VERSION }}
31+
path: |
32+
~/.cargo
33+
./target
34+
- uses: actions-rs/cargo@v1
35+
with:
36+
command: test
37+
- uses: actions-rs/cargo@v1
38+
with:
39+
command: build
40+
args: --release

.gitignore

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,2 @@
1-
2-
/bin/
3-
/build/
4-
/develop-eggs/
5-
/dist/
6-
/eggs/
7-
/parts/
8-
/src/*.egg-info
9-
10-
/.ansible/
11-
/.eggs/
12-
/.installed.cfg
13-
/.python-version
14-
/.vagrant
151
/.idea
16-
17-
__pycache__
18-
*.pyc
19-
*.pyo
2+
/target

.travis.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)