mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 16:40:01 +00:00
Merge 3f11068f9c0290599ec67247effd0af67b345d73 into ddcc539076f3b78bd9c41afc55e45bcb51ba7bc0
This commit is contained in:
commit
e3fc1cf8a3
10
.github/workflows/docs-and-testcov.yml
vendored
10
.github/workflows/docs-and-testcov.yml
vendored
@ -101,14 +101,18 @@ jobs:
|
|||||||
cp last-commit-date.json target/doc/rustframe/
|
cp last-commit-date.json target/doc/rustframe/
|
||||||
mkdir -p target/doc/rustframe/.github
|
mkdir -p target/doc/rustframe/.github
|
||||||
cp .github/rustframe_logo.png target/doc/rustframe/.github/
|
cp .github/rustframe_logo.png target/doc/rustframe/.github/
|
||||||
echo "<meta http-equiv=\"refresh\" content=\"0; url=rustframe\">" > target/doc/index.html
|
|
||||||
|
mkdir -p target/doc/docs
|
||||||
|
mv target/doc/rustframe/ target/doc/docs/
|
||||||
|
|
||||||
|
echo "<meta http-equiv=\"refresh\" content=\"0; url=docs\">" > target/doc/index.html
|
||||||
|
|
||||||
- name: Upload Pages artifact
|
- name: Upload Pages artifact
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: target/doc/
|
path: target/doc/
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
||||||
uses: actions/deploy-pages@v4
|
uses: actions/deploy-pages@v4
|
||||||
|
16
.github/workflows/run-benchmarks.yml
vendored
16
.github/workflows/run-benchmarks.yml
vendored
@ -7,8 +7,22 @@ on:
|
|||||||
# - main
|
# - main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-benchmarks:
|
pick-runner:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
runner: ${{ steps.choose.outputs.use-runner }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- id: choose
|
||||||
|
uses: ./.github/actions/runner-fallback
|
||||||
|
with:
|
||||||
|
primary-runner: "self-hosted,ubuntu-latest"
|
||||||
|
fallback-runner: "ubuntu-latest"
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
run-benchmarks:
|
||||||
|
needs: pick-runner
|
||||||
|
runs-on: ${{ fromJson(needs.pick-runner.outputs.runner) }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
Loading…
x
Reference in New Issue
Block a user