-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added runtimes to the repo. * Changed code to reduce disk usage on github actions. * Fixed bug in tools/build_data.py. * Added free space output. * Testing something. * Final github action fixes for free space. * Added hash cache to speed up tools/build_release.py and tools/build_data.py.
- Loading branch information
Showing
23 changed files
with
304 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,20 @@ jobs: | |
- uses: hmarr/debug-action@v2 | ||
name: "debug: ${{github.event_name}}" | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Clean out files for more space | ||
- name: Clean out files part 1 | ||
run: | | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf "/usr/local/share/boost" | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Clean out files part 2 | ||
run: | | ||
rm -rf .git | ||
echo "Free Space" | ||
df -h | ||
- name: env - better defaulting of env vars; | ||
id: env | ||
|
@@ -64,19 +69,6 @@ jobs: | |
|
||
###################################################################### | ||
## Only run these if it is the PortMaster-New repo | ||
- uses: robinraju/[email protected] | ||
if: ${{ steps.env.outputs.RELEASE_REPO }} == "PortMaster-New" | ||
with: | ||
out-file-path: "releases" | ||
repository: "PortsMaster/PortMaster-Runtime" | ||
tag: "runtimes" | ||
fileName: "*.squashfs" | ||
|
||
- name: Remove Zulu JDK | ||
if: ${{ steps.env.outputs.RELEASE_REPO }} == "PortMaster-New" | ||
run: | | ||
rm -f releases/zulu* | ||
- uses: robinraju/[email protected] | ||
if: ${{ steps.env.outputs.RELEASE_REPO }} == "PortMaster-New" | ||
with: | ||
|
@@ -99,7 +91,6 @@ jobs: | |
python3 tools/build_data.py | ||
python3 tools/build_release.py "${{steps.date.outputs.date}}" | ||
rm -fv releases/.gitignore | ||
rm -f releases/*.squashfs | ||
- name: "Prepare Release" | ||
uses: ncipollo/release-action@v1 | ||
|
@@ -128,6 +119,10 @@ jobs: | |
repo: ${{ steps.env.outputs.RELEASE_REPO }} | ||
owner: ${{ steps.env.outputs.RELEASE_ORG }} | ||
|
||
- name: Check Free Space | ||
run: | | ||
df -h | ||
- name: Release Info | ||
id: info | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
|
||
# Special file, ignore it. :) | ||
.github_check | ||
.hash_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Autogenerated by tools/build_data.py | ||
mono-6.12.0.122-aarch64.squashfs |
Oops, something went wrong.