Skip to content

Commit 375d671

Browse files
authored
Update static.yml (#304)
1 parent bb2078c commit 375d671

File tree

1 file changed

+25
-10
lines changed

1 file changed

+25
-10
lines changed

.github/workflows/static.yml

+25-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
# Simple workflow for deploying static content to GitHub Pages
2-
name: Deploy static content to Pages
1+
name: ☣️ Coverage Report ☣️
32

43
on:
5-
# Runs on pushes targeting the default branch
6-
push:
7-
branches: ["feature/version-9"]
8-
9-
# Allows you to run this workflow manually from the Actions tab
104
workflow_dispatch:
5+
workflow_run:
6+
workflows: [🦀 Rust 🦀]
7+
types:
8+
- completed
119

1210
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1311
permissions:
@@ -27,16 +25,33 @@ jobs:
2725
environment:
2826
name: github-pages
2927
url: ${{ steps.deployment.outputs.page_url }}
30-
runs-on: ubuntu-latest
28+
runs-on: ${{ matrix.os }}
29+
strategy:
30+
matrix:
31+
include:
32+
- os: ubuntu-latest
33+
rust: nightly
34+
target: x86_64-unknown-linux-gnu
3135
steps:
32-
- name: Checkout
36+
- name: Checkout
3337
uses: actions/checkout@v4
38+
- name: 💵 Cache 💵
39+
uses: actions/cache@v4
40+
with:
41+
path: |
42+
~/.cargo/bin/
43+
~/.cargo/registry/index/
44+
~/.cargo/registry/cache/
45+
~/.cargo/git/db/
46+
target/llvm-cov
47+
key: ${{ runner.os }}-${{ matrix.rust }}-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock', '**/main.yml') }}
48+
restore-keys: |
49+
${{ runner.os }}-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock', '**/main.yml') }}
3450
- name: Setup Pages
3551
uses: actions/configure-pages@v4
3652
- name: Upload artifact
3753
uses: actions/upload-pages-artifact@v3
3854
with:
39-
# Upload entire repository
4055
path: 'target/llvm-cov/html'
4156
- name: Deploy to GitHub Pages
4257
id: deployment

0 commit comments

Comments
 (0)