-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to GitHub Actions #531
Changes from all commits
0b5a5ea
2ef84d2
c64a39a
068ba22
5394657
0491055
a9f9d64
b5f84f4
7f0a04c
5e0a4e1
3067a25
354fe43
f91b12b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm curious how this works. Does GitHub automatically give you this, or did we already have a secret called There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. GitHub automatically gives it to you. It has limited permissions and a short TTL. It's one of the best features of actions. ❤️ |
||
BRANCH: gh-pages | ||
FOLDER: target/doc |
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 |
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 |
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.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dherman @amilajack Do we use Github Pages for docs anymore? I thought we switched to only using
docs.rs
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea we do. I think the domain is hosted with netlify. But our static content for the site is hosted with gh pages. Cargo generated API docs are hosted on
docs.rs
.