Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

Commit 81c8aa8

Browse files
committed
👷 move to github-action
1 parent 22fe420 commit 81c8aa8

9 files changed

Lines changed: 357 additions & 262 deletions

File tree

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "cargo"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: "github-actions"
8+
# Workflow files stored in the
9+
# default location of `.github/workflows`
10+
directory: "/"
11+
schedule:
12+
interval: "weekly"

.github/workflows/ci.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: ci-flow
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
- "releases/*"
9+
# tags-ignore:
10+
# - "[0-9]+.[0-9]+.[0-9]+*"
11+
12+
jobs:
13+
build:
14+
runs-on: ${{ matrix.os.imageName }}
15+
strategy:
16+
matrix:
17+
rust_toolchain: ["stable"]
18+
os:
19+
- imageName: ubuntu-16.04
20+
target: x86_64-unknown-linux-gnu
21+
profile: linux
22+
- imageName: "macOS-latest"
23+
target: x86_64-apple-darwin
24+
profile: mac
25+
# - imageName: 'windows-2019'
26+
# target: x86_64-pc-windows-msvc
27+
# profile: windows
28+
29+
steps:
30+
- uses: actions-rs/toolchain@v1
31+
with:
32+
toolchain: ${{ matrix.rust_toolchain }}
33+
override: true
34+
- uses: davidB/rust-cargo-make@v1
35+
- uses: actions/checkout@v2.3.4
36+
- name: Run tests
37+
run: cargo make --disable-check-for-updates --profile ${{ matrix.os.profile }} --env TARGET=${{matrix.os.target}} ci-flow

.github/workflows/release.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: release-flow
2+
3+
# https://help.github.com/en/articles/events-that-trigger-workflows#release-event-release
4+
# on: release
5+
6+
on:
7+
push:
8+
tags:
9+
- "[0-9]+.[0-9]+.[0-9]+*"
10+
11+
jobs:
12+
build:
13+
runs-on: ${{ matrix.os.imageName }}
14+
strategy:
15+
matrix:
16+
rust_toolchain: ["stable"]
17+
os:
18+
- imageName: ubuntu-16.04
19+
target: x86_64-unknown-linux-gnu
20+
profile: linux
21+
- imageName: "macOS-latest"
22+
target: x86_64-apple-darwin
23+
profile: mac
24+
# - imageName: 'windows-2019'
25+
# target: x86_64-pc-windows-msvc
26+
# profile: windows
27+
env:
28+
TARGET: ${{matrix.os.target}}
29+
30+
steps:
31+
- uses: actions-rs/toolchain@v1
32+
with:
33+
toolchain: ${{ matrix.rust_toolchain }}
34+
override: true
35+
- uses: davidB/rust-cargo-make@v1
36+
- uses: actions/checkout@v2.3.4
37+
- name: Make zip-release-ci-flow
38+
run: cargo make --disable-check-for-updates --profile ${{ matrix.os.profile }} zip-release-ci-flow
39+
- name: Upload to gitHub release
40+
run: cargo make --disable-check-for-updates --profile ${{ matrix.os.profile }} github-upload-flow
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
TAG: ${{ github.ref }}
44+
# GITHUB_REPOSITORY: ${{ GITHUB_REPOSITORY }}

.travis.yml

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

0 commit comments

Comments
 (0)