Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ingegneria del software
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sameeramadusal.kaluwaduge@studenti.unimi.it
Ingegneria del software
Commits
ac74aadd
Verified
Commit
ac74aadd
authored
Jun 8, 2023
by
Marco Aceti
Browse files
Options
Downloads
Patches
Plain Diff
Add caching support in mdbook-deploy workflow
parent
dab8cc15
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/mdbook-deploy.yml
+31
-2
31 additions, 2 deletions
.github/workflows/mdbook-deploy.yml
with
31 additions
and
2 deletions
.github/workflows/mdbook-deploy.yml
+
31
−
2
View file @
ac74aadd
...
@@ -32,20 +32,49 @@ jobs:
...
@@ -32,20 +32,49 @@ jobs:
sudo apt-get update -y
sudo apt-get update -y
sudo apt-get install -y wget default-jre default-jdk graphviz libssl-dev pkg-config
sudo apt-get install -y wget default-jre default-jdk graphviz libssl-dev pkg-config
-
name
:
Restore from cache
uses
:
actions/cache/restore@v3
id
:
cache-restore
with
:
path
:
|
plantuml.jar
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key
:
${{ runner.os }}
-
name
:
Install mdBook
-
name
:
Install mdBook
if
:
steps.cache-restore.outputs.cache-hit != 'true'
run
:
|
run
:
|
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
rustup update
rustup update
cargo install mdbook
cargo install mdbook
cargo install mdbook-plantuml
cargo install mdbook-plantuml
-
name
:
Install PlantUML
-
name
:
Download PlantUML
if
:
steps.cache-restore.outputs.cache-hit != 'true'
run
:
|
run
:
|
wget https://github.com/plantuml/plantuml/releases/download/v1.2022.13/plantuml-1.2022.13.jar -O plantuml.jar
wget https://github.com/plantuml/plantuml/releases/download/v1.2022.13/plantuml-1.2022.13.jar -O plantuml.jar
echo "#!/bin/bash" > plantuml ; echo "java -jar $PWD/plantuml.jar \"\$1\" \"\$2\"" >> plantuml
-
name
:
Install PlantUML
run
:
|
echo "#!/bin/bash" > plantuml ; echo "java -jar $PWD/plantuml.jar \"\$@\"" >> plantuml
sudo mv plantuml /usr/bin/plantuml
sudo mv plantuml /usr/bin/plantuml
sudo chmod +x /usr/bin/plantuml
sudo chmod +x /usr/bin/plantuml
-
name
:
Save PlantUML to cache
id
:
cache-save
uses
:
actions/cache/save@v3
with
:
path
:
|
plantuml.jar
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key
:
${{ steps.cache-restore.outputs.cache-primary-key }}
-
name
:
Setup Pages
-
name
:
Setup Pages
id
:
pages
id
:
pages
uses
:
actions/configure-pages@v3
uses
:
actions/configure-pages@v3
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment