Skip to content

Commit

Permalink
updates system dependencies in action
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjemmett committed Mar 13, 2024
1 parent 505071e commit 0052bf6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rebuild_site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
- name: Install System Dependencies
run: |
sudo apt update
sudo apt install -y cmake
sudo apt install -y gdal-bin
sudo apt install -y git
sudo apt install -y libcurl4-openssl-dev
Expand All @@ -31,7 +32,6 @@ jobs:
sudo apt install -y libgdal-dev
sudo apt install -y libgeos-dev
sudo apt install -y libglpk-dev
sudo apt install -y libgmp3-dev
sudo apt install -y libharfbuzz-dev
sudo apt install -y libicu-dev
sudo apt install -y libjpeg-dev
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/rebuild_system_dependencies.r
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ packages <- read_json("renv.lock") |>
}) |>
flatten_chr() |>
unique() |>
sort() |>
str_remove("^apt-get install -y ") |>
paste(collapse = " ")
sort()

# copy the results of this into the action script
paste("sudo apt update && sudo apt upgrade", packages)
paste0(
"sudo apt update\n",
paste(
"sudo",
stringr::str_remove(packages, "-get"),
collapse = "\n"
)
) |> clipr::write_clip()

0 comments on commit 0052bf6

Please sign in to comment.