Skip to content

Commit

Permalink
Merge branch 'feature/rust'
Browse files Browse the repository at this point in the history
  • Loading branch information
naftulikay committed Dec 25, 2021
2 parents 7d9d9ff + d68a056 commit f342191
Show file tree
Hide file tree
Showing 28 changed files with 2,466 additions and 599 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
on:
release:
types: [created]

jobs:
release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-pc-windows-gnu
archive: zip
- target: x86_64-unknown-linux-musl
archive: tar.gz tar.xz
- target: x86_64-apple-darwin
archive: zip tar.gz tar.xz
steps:
- uses: actions/checkout@v2
- uses: rust-build/rust-build.action@latest
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}
40 changes: 40 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
workflow_dispatch: {}

env:
CACHE_VERSION: v1

jobs:
rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-unknown-linux-musl
- uses: actions/cache@v2
with:
key: "${{ runner.os }}-rust-${{ env.CACHE_VERSION }}-${{ hashFiles('Cargo.lock') }}-${{ github.sha }}"
restore-keys: |
${{ runner.os }}-rust-${{ env.CACHE_VERSION }}-${{ hashFiles('Cargo.lock') }}
${{ runner.os }}-rust-${{ env.CACHE_VERSION }}
path: |
~/.cargo
./target
- uses: actions-rs/cargo@v1
with:
command: test
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
19 changes: 1 addition & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,2 @@

/bin/
/build/
/develop-eggs/
/dist/
/eggs/
/parts/
/src/*.egg-info

/.ansible/
/.eggs/
/.installed.cfg
/.python-version
/.vagrant
/.idea

__pycache__
*.pyc
*.pyo
/target
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit f342191

Please sign in to comment.