Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #531 from lhr0909/master
Switch to GitHub Actions
- Loading branch information
Showing
8 changed files
with
128 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Generate Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
doc: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Rust ${{ matrix.rust-toolchain }} | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- name: Run cargo doc | ||
run: cargo doc | ||
- name: edit target/doc/index.html | ||
run: 'echo "<meta http-equiv=refresh content=0;url=neon/index.html>" > target/doc/index.html' | ||
- name: Push docs to gh-pages branch | ||
uses: JamesIves/github-pages-deploy-action@37acdb9c8dbc56e55255f36199ba2f3651b74db3 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: target/doc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Test on Linux | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [10.x, 12.x, 14.x] | ||
rust-toolchain: [stable, beta, nightly] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Rust ${{ matrix.rust-toolchain }} | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust-toolchain }} | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: install g++-4.8 | ||
run: sudo apt-get install -y g++-4.8 | ||
- name: set DISPLAY env | ||
run: echo "::set-env DISPLAY=:99.0" | ||
- name: run cargo test | ||
uses: GabrielBB/xvfb-action@e9adbdcd44108e54f12d6a49a373a074385b8512 | ||
with: | ||
run: cargo test --release -- --nocapture |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Test on MacOS | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: macos-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [10.x, 12.x, 14.x] | ||
rust-toolchain: [stable, beta, nightly] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Rust ${{ matrix.rust-toolchain }} | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust-toolchain }} | ||
target: x86_64-apple-darwin | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
# - name: update node-gyp to latest | ||
# # https://github.com/nodejs/node-gyp/issues/1933#issuecomment-586915535 | ||
# run: npm install -g node-gyp@latest | ||
- name: run cargo test | ||
run: cargo test --release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Test on Windows | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: windows-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [10.x, 12.x, 14.x] | ||
rust-toolchain: [stable, beta, nightly] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Rust ${{ matrix.rust-toolchain }} | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust-toolchain }} | ||
target: x86_64-pc-windows-msvc | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
# - name: update node-gyp to latest | ||
# # https://github.com/nodejs/node-gyp/issues/1933#issuecomment-586915535 | ||
# run: npm install -g node-gyp@latest | ||
- run: npm config set msvs_version 2019 | ||
- name: run cargo test | ||
run: cargo test --release |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters