Skip to content

Commit dad54f2

Browse files
committed
fix in github actions
1 parent f315658 commit dad54f2

File tree

3 files changed

+40
-33
lines changed

3 files changed

+40
-33
lines changed

.github/workflows/build_and_test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Cargo Build & Test
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
CARGO_TERM_COLOR: always
7+
8+
jobs:
9+
build_and_test:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
toolchain:
14+
- stable
15+
steps:
16+
- uses: actions/checkout@v2
17+
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
18+
- run: cargo build --verbose
19+
- run: cargo test --verbose

.github/workflows/ci.yml

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

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Create Release and Upload Assets
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
upload_assets:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- run: rustup update stable && rustup default stable
13+
- run: cargo build --release
14+
- run: tar -czf rust-watchman-stable.tar.gz target/release/librustwatchman.rlib
15+
- name: Upload Release Asset
16+
uses: actions/upload-release-asset@v1
17+
with:
18+
upload_url: ${{ github.event.release.upload_url }}
19+
asset_path: ./rust-watchman-stable.tar.gz
20+
asset_name: rust-watchman-stable.tar.gz
21+
asset_content_type: application/gzip

0 commit comments

Comments
 (0)