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: |
|
||||
set -euo pipefail
|
||||
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 \
|
||||
"${shared_root}/cargo" \
|
||||
"${shared_root}/rustup" \
|
||||
"${shared_root}/sccache" \
|
||||
"${shared_root}/homebrew" \
|
||||
"${shared_root}/apple/PackageCache" \
|
||||
"${shared_root}/apple/SourcePackages" \
|
||||
"${lane_root}/cargo-target" \
|
||||
"${lane_root}/DerivedData"
|
||||
"${cache_root}/cargo" \
|
||||
"${cache_root}/cargo-target/${{ matrix.cache-id }}" \
|
||||
"${cache_root}/rustup" \
|
||||
"${cache_root}/sccache" \
|
||||
"${cache_root}/homebrew" \
|
||||
"${cache_root}/apple/PackageCache" \
|
||||
"${cache_root}/apple/SourcePackages" \
|
||||
"${cache_root}/apple/DerivedData/${{ matrix.cache-id }}"
|
||||
rm -rf \
|
||||
"${lane_root}/cargo-target" \
|
||||
"${lane_root}/DerivedData"
|
||||
"${cache_root}/cargo-target/${{ matrix.cache-id }}" \
|
||||
"${cache_root}/apple/DerivedData/${{ matrix.cache-id }}"
|
||||
mkdir -p \
|
||||
"${lane_root}/cargo-target" \
|
||||
"${lane_root}/DerivedData"
|
||||
echo "CARGO_HOME=${shared_root}/cargo" >> "${GITHUB_ENV}"
|
||||
echo "CARGO_TARGET_DIR=${lane_root}/cargo-target" >> "${GITHUB_ENV}"
|
||||
echo "RUSTUP_HOME=${shared_root}/rustup" >> "${GITHUB_ENV}"
|
||||
echo "SCCACHE_DIR=${shared_root}/sccache" >> "${GITHUB_ENV}"
|
||||
echo "HOMEBREW_CACHE=${shared_root}/homebrew" >> "${GITHUB_ENV}"
|
||||
echo "APPLE_PACKAGE_CACHE=${shared_root}/apple/PackageCache" >> "${GITHUB_ENV}"
|
||||
echo "APPLE_SOURCE_PACKAGES=${shared_root}/apple/SourcePackages" >> "${GITHUB_ENV}"
|
||||
echo "APPLE_DERIVED_DATA=${lane_root}/DerivedData" >> "${GITHUB_ENV}"
|
||||
df -h "${shared_root}" "${lane_root}" || true
|
||||
"${cache_root}/cargo-target/${{ matrix.cache-id }}" \
|
||||
"${cache_root}/apple/DerivedData/${{ matrix.cache-id }}"
|
||||
echo "CARGO_HOME=${cache_root}/cargo" >> "${GITHUB_ENV}"
|
||||
echo "CARGO_TARGET_DIR=${cache_root}/cargo-target/${{ matrix.cache-id }}" >> "${GITHUB_ENV}"
|
||||
echo "RUSTUP_HOME=${cache_root}/rustup" >> "${GITHUB_ENV}"
|
||||
echo "SCCACHE_DIR=${cache_root}/sccache" >> "${GITHUB_ENV}"
|
||||
echo "HOMEBREW_CACHE=${cache_root}/homebrew" >> "${GITHUB_ENV}"
|
||||
echo "APPLE_PACKAGE_CACHE=${cache_root}/apple/PackageCache" >> "${GITHUB_ENV}"
|
||||
echo "APPLE_SOURCE_PACKAGES=${cache_root}/apple/SourcePackages" >> "${GITHUB_ENV}"
|
||||
echo "APPLE_DERIVED_DATA=${cache_root}/apple/DerivedData/${{ matrix.cache-id }}" >> "${GITHUB_ENV}"
|
||||
df -h "${cache_root}" || true
|
||||
|
||||
- name: Install Rust
|
||||
shell: bash
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -41,15 +41,9 @@ namespace:
|
|||
size_gb: 40
|
||||
macos_cache_path: "/Users/runner/.cache/burrow"
|
||||
macos_cache_volumes:
|
||||
- tag: "burrow-forgejo-macos-shared-v1"
|
||||
mount_point: "/Users/runner/.cache/burrow/shared"
|
||||
size_gb: 80
|
||||
- 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
|
||||
- tag: "burrow-forgejo-macos-cache-v2"
|
||||
mount_point: "/Users/runner/.cache/burrow"
|
||||
size_gb: 160
|
||||
|
||||
runner:
|
||||
name_prefix: "nscloud-"
|
||||
|
|
|
|||
|
|
@ -193,19 +193,9 @@ func (c *Config) Validate() error {
|
|||
if len(c.Namespace.MacosCacheVolumes) == 0 {
|
||||
c.Namespace.MacosCacheVolumes = []CacheVolumeConfig{
|
||||
{
|
||||
Tag: "burrow-forgejo-macos-shared-v1",
|
||||
MountPoint: c.Namespace.MacosCachePath + "/shared",
|
||||
SizeGb: 80,
|
||||
},
|
||||
{
|
||||
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,
|
||||
Tag: "burrow-forgejo-macos-cache-v2",
|
||||
MountPoint: c.Namespace.MacosCachePath,
|
||||
SizeGb: 160,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue