Compare commits
No commits in common. "52c30484587a247bd0c1ead5ea76c465fd07755e" and "bf4b270db5c569d64f3f4da386e473fa9a2e0e47" have entirely different histories.
52c3048458
...
bf4b270db5
6 changed files with 27 additions and 45 deletions
|
|
@ -74,32 +74,30 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cache_root="${NSC_CACHE_PATH:-${HOME}/.cache/burrow}"
|
cache_root="${NSC_CACHE_PATH:-${HOME}/.cache/burrow}"
|
||||||
shared_root="${NSC_SHARED_CACHE_PATH:-${cache_root}/shared}"
|
|
||||||
lane_root="${NSC_LANE_CACHE_PATH:-${cache_root}/lane/${{ matrix.cache-id }}}"
|
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
"${shared_root}/cargo" \
|
"${cache_root}/cargo" \
|
||||||
"${shared_root}/rustup" \
|
"${cache_root}/cargo-target/${{ matrix.cache-id }}" \
|
||||||
"${shared_root}/sccache" \
|
"${cache_root}/rustup" \
|
||||||
"${shared_root}/homebrew" \
|
"${cache_root}/sccache" \
|
||||||
"${shared_root}/apple/PackageCache" \
|
"${cache_root}/homebrew" \
|
||||||
"${shared_root}/apple/SourcePackages" \
|
"${cache_root}/apple/PackageCache" \
|
||||||
"${lane_root}/cargo-target" \
|
"${cache_root}/apple/SourcePackages" \
|
||||||
"${lane_root}/DerivedData"
|
"${cache_root}/apple/DerivedData/${{ matrix.cache-id }}"
|
||||||
rm -rf \
|
rm -rf \
|
||||||
"${lane_root}/cargo-target" \
|
"${cache_root}/cargo-target/${{ matrix.cache-id }}" \
|
||||||
"${lane_root}/DerivedData"
|
"${cache_root}/apple/DerivedData/${{ matrix.cache-id }}"
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
"${lane_root}/cargo-target" \
|
"${cache_root}/cargo-target/${{ matrix.cache-id }}" \
|
||||||
"${lane_root}/DerivedData"
|
"${cache_root}/apple/DerivedData/${{ matrix.cache-id }}"
|
||||||
echo "CARGO_HOME=${shared_root}/cargo" >> "${GITHUB_ENV}"
|
echo "CARGO_HOME=${cache_root}/cargo" >> "${GITHUB_ENV}"
|
||||||
echo "CARGO_TARGET_DIR=${lane_root}/cargo-target" >> "${GITHUB_ENV}"
|
echo "CARGO_TARGET_DIR=${cache_root}/cargo-target/${{ matrix.cache-id }}" >> "${GITHUB_ENV}"
|
||||||
echo "RUSTUP_HOME=${shared_root}/rustup" >> "${GITHUB_ENV}"
|
echo "RUSTUP_HOME=${cache_root}/rustup" >> "${GITHUB_ENV}"
|
||||||
echo "SCCACHE_DIR=${shared_root}/sccache" >> "${GITHUB_ENV}"
|
echo "SCCACHE_DIR=${cache_root}/sccache" >> "${GITHUB_ENV}"
|
||||||
echo "HOMEBREW_CACHE=${shared_root}/homebrew" >> "${GITHUB_ENV}"
|
echo "HOMEBREW_CACHE=${cache_root}/homebrew" >> "${GITHUB_ENV}"
|
||||||
echo "APPLE_PACKAGE_CACHE=${shared_root}/apple/PackageCache" >> "${GITHUB_ENV}"
|
echo "APPLE_PACKAGE_CACHE=${cache_root}/apple/PackageCache" >> "${GITHUB_ENV}"
|
||||||
echo "APPLE_SOURCE_PACKAGES=${shared_root}/apple/SourcePackages" >> "${GITHUB_ENV}"
|
echo "APPLE_SOURCE_PACKAGES=${cache_root}/apple/SourcePackages" >> "${GITHUB_ENV}"
|
||||||
echo "APPLE_DERIVED_DATA=${lane_root}/DerivedData" >> "${GITHUB_ENV}"
|
echo "APPLE_DERIVED_DATA=${cache_root}/apple/DerivedData/${{ matrix.cache-id }}" >> "${GITHUB_ENV}"
|
||||||
df -h "${shared_root}" "${lane_root}" || true
|
df -h "${cache_root}" || true
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -41,15 +41,9 @@ namespace:
|
||||||
size_gb: 40
|
size_gb: 40
|
||||||
macos_cache_path: "/Users/runner/.cache/burrow"
|
macos_cache_path: "/Users/runner/.cache/burrow"
|
||||||
macos_cache_volumes:
|
macos_cache_volumes:
|
||||||
- tag: "burrow-forgejo-macos-shared-v1"
|
- tag: "burrow-forgejo-macos-cache-v2"
|
||||||
mount_point: "/Users/runner/.cache/burrow/shared"
|
mount_point: "/Users/runner/.cache/burrow"
|
||||||
size_gb: 80
|
size_gb: 160
|
||||||
- tag: "burrow-forgejo-macos-macos-v1"
|
|
||||||
mount_point: "/Users/runner/.cache/burrow/lane/macos"
|
|
||||||
size_gb: 80
|
|
||||||
- tag: "burrow-forgejo-macos-ios-simulator-v1"
|
|
||||||
mount_point: "/Users/runner/.cache/burrow/lane/ios-simulator"
|
|
||||||
size_gb: 80
|
|
||||||
|
|
||||||
runner:
|
runner:
|
||||||
name_prefix: "nscloud-"
|
name_prefix: "nscloud-"
|
||||||
|
|
|
||||||
|
|
@ -193,19 +193,9 @@ func (c *Config) Validate() error {
|
||||||
if len(c.Namespace.MacosCacheVolumes) == 0 {
|
if len(c.Namespace.MacosCacheVolumes) == 0 {
|
||||||
c.Namespace.MacosCacheVolumes = []CacheVolumeConfig{
|
c.Namespace.MacosCacheVolumes = []CacheVolumeConfig{
|
||||||
{
|
{
|
||||||
Tag: "burrow-forgejo-macos-shared-v1",
|
Tag: "burrow-forgejo-macos-cache-v2",
|
||||||
MountPoint: c.Namespace.MacosCachePath + "/shared",
|
MountPoint: c.Namespace.MacosCachePath,
|
||||||
SizeGb: 80,
|
SizeGb: 160,
|
||||||
},
|
|
||||||
{
|
|
||||||
Tag: "burrow-forgejo-macos-macos-v1",
|
|
||||||
MountPoint: c.Namespace.MacosCachePath + "/lane/macos",
|
|
||||||
SizeGb: 80,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Tag: "burrow-forgejo-macos-ios-simulator-v1",
|
|
||||||
MountPoint: c.Namespace.MacosCachePath + "/lane/ios-simulator",
|
|
||||||
SizeGb: 80,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue