Skip to content

Commit

Permalink
Update CI to latest project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Feb 29, 2024
1 parent ca07b05 commit f6a49e8
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/validation-rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,8 @@ jobs:
run: cd rust/ && cargo audit
- name: Audit dependency licenses with cargo-deny
uses: EmbarkStudios/cargo-deny-action@v1

# uses: rustsec/audit-check@v1.4.1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
with:
arguments: --manifest-path Cargo.toml

doc:
name: "Docs (cargo doc) & Pub"
Expand All @@ -153,13 +151,13 @@ jobs:
# create docs for the crate we care about
- name: Build docs for publish
run: |
rm -rf target/doc/ rust/target/doc/
cargo doc --manifest-path rust/mariadb/Cargo.toml --no-deps
cargo doc --manifest-path rust/mariadb-sys/Cargo.toml --no-deps
rm -rf target/doc/
cargo doc --manifest-path mariadb/Cargo.toml --no-deps
cargo doc --manifest-path mariadb-sys/Cargo.toml --no-deps
- run: |
echo `pwd`/rust/target/doc >> $GITHUB_PATH
echo "$(pwd)/target/doc" >> $GITHUB_PATH
# fake index.html so github likes us
echo "<meta http-equiv=\"refresh\" content=\"0; url=mariadb\">" > rust/target/doc/index.html
echo '<meta http-equiv="refresh" content="0; url=mariadb">' > target/doc/index.html
- name: Deploy GitHub Pages
run: |
git worktree add gh-pages
Expand All @@ -169,7 +167,7 @@ jobs:
# Delete the ref to avoid keeping history.
git update-ref -d refs/heads/gh-pages
rm -rf *
mv ../rust/target/doc/* .
mv ../target/doc/* .
git add .
git commit -m "Deploy $GITHUB_SHA to gh-pages"
git push --force --set-upstream origin gh-pages

0 comments on commit f6a49e8

Please sign in to comment.