-
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #5 from sebastienrousseau/feat/vrd
feat(vrd): preparing v0.0.3
- Loading branch information
Showing
16 changed files
with
320 additions
and
418 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 |
---|---|---|
@@ -1,13 +1,23 @@ | ||
name: 🧪 Audit | ||
on: [push, pull_request] | ||
|
||
on: | ||
push: | ||
branches: | ||
- feat/vrd | ||
pull_request: | ||
branches: | ||
- feat/vrd | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
dependencies: | ||
name: Audit dependencies | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: hecrj/setup-rust-action@v1 | ||
- name: Install cargo-audit | ||
run: cargo install cargo-audit | ||
- uses: actions/checkout@master | ||
- name: Audit dependencies | ||
run: cargo audit | ||
- uses: hecrj/setup-rust-action@v1 | ||
- name: Install cargo-audit | ||
run: cargo install cargo-audit | ||
- uses: actions/checkout@master | ||
- name: Audit dependencies | ||
run: cargo audit |
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 |
---|---|---|
@@ -1,13 +1,23 @@ | ||
name: 🧪 Check | ||
on: [push, pull_request] | ||
|
||
on: | ||
push: | ||
branches: | ||
- feat/vrd | ||
pull_request: | ||
branches: | ||
- feat/vrd | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
all: | ||
name: Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: hecrj/setup-rust-action@v1 | ||
with: | ||
components: clippy | ||
- uses: actions/checkout@master | ||
- name: Check lints | ||
run: cargo check --all-targets --workspace --all-features | ||
- uses: hecrj/setup-rust-action@v1 | ||
with: | ||
components: clippy | ||
- uses: actions/checkout@master | ||
- name: Check lints | ||
run: cargo check --all-targets --workspace --all-features |
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 |
---|---|---|
@@ -1,51 +1,60 @@ | ||
name: 🧪 Document | ||
on: [push, pull_request] | ||
|
||
on: | ||
push: | ||
branches: | ||
- feat/vrd | ||
pull_request: | ||
branches: | ||
- feat/vrd | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
all: | ||
name: Document | ||
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
steps: | ||
- uses: hecrj/setup-rust-action@v1 | ||
with: | ||
rust-version: nightly | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Update libssl | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libssl1.1 | ||
- name: Generate documentation for all features and publish it | ||
run: | | ||
RUSTDOCFLAGS="--cfg docsrs" \ | ||
cargo doc --no-deps --all-features --workspace | ||
# Write index.html with redirect | ||
echo '<html><head><meta http-equiv="refresh" content="0; url=/vrd/"></head><body></body></html>' > ./target/doc/index.html | ||
- name: Deploy | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: documentation | ||
path: target/doc | ||
if-no-files-found: error | ||
retention-days: 1 | ||
|
||
- name: Write CNAME file | ||
run: echo 'doc.vrdlib.one' > ./target/doc/CNAME | ||
|
||
- uses: hecrj/setup-rust-action@v1 | ||
with: | ||
rust-version: nightly | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Update libssl | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libssl1.1 | ||
- name: Generate documentation for all features and publish it | ||
run: | | ||
RUSTDOCFLAGS="--cfg docsrs" \ | ||
cargo doc --no-deps --all-features --workspace | ||
# Write index.html with redirect | ||
echo '<html><head><meta http-equiv="refresh" content="0; url=/vrd/"></head><body></body></html>' > ./target/doc/index.html | ||
- name: Deploy | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: documentation | ||
path: target/doc | ||
if-no-files-found: error | ||
retention-days: 1 | ||
|
||
- name: Write CNAME file | ||
run: echo 'doc.vrdlib.one' > ./target/doc/CNAME | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./target/doc | ||
publish_branch: gh-pages | ||
cname: true | ||
clean: true | ||
commit_message: Deploy documentation at ${{ github.sha }} | ||
commit_user_name: github-actions | ||
commit_user_email: actions@users.noreply.github.com | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./target/doc | ||
publish_branch: gh-pages | ||
cname: true | ||
clean: true | ||
commit_message: Deploy documentation at ${{ github.sha }} | ||
commit_user_name: github-actions | ||
commit_user_email: actions@users.noreply.github.com |
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 |
---|---|---|
@@ -1,13 +1,23 @@ | ||
name: 🧪 Lint | ||
on: [push, pull_request] | ||
|
||
on: | ||
push: | ||
branches: | ||
- feat/vrd | ||
pull_request: | ||
branches: | ||
- feat/vrd | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
all: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: hecrj/setup-rust-action@v1 | ||
with: | ||
components: clippy | ||
- uses: actions/checkout@master | ||
- name: Check lints | ||
run: cargo clippy --workspace --all-features --all-targets --no-deps -- -D warnings | ||
- uses: hecrj/setup-rust-action@v1 | ||
with: | ||
components: clippy | ||
- uses: actions/checkout@master | ||
- name: Check lints | ||
run: cargo clippy --workspace --all-features --all-targets --no-deps -- -D warnings |
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
Oops, something went wrong.