-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace ephemeral link with forever link
CI: Use free-disk-space only on linux free disk space for window See https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md To check what is installed on the window image Use rmdir instead of choco to uninstall Android Fix Window CI Issue FIx CI by removing android uninstall and adding time becfore checking for tick Removing cache to fix cargo pdb error See https://stackoverflow.com/questions/4256524/lnk1318-unexpected-pdb-error-ok-0 Add time before timing out for the CI to run Reduce the amount of jobs to reduce memory consumption and maybe fix parallel build error Remove rust caching as it not link to CI issue Remove android folder to add more space to window runner Removing windows from CI/CD as it does not work
- Loading branch information
1 parent
031c445
commit dc78bfd
Showing
3 changed files
with
21 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,13 +18,14 @@ jobs: | |
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
fail-fast: false | ||
runs-on: ${{ matrix.platform }} | ||
timeout-minutes: 30 | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: r7kamura/[email protected] | ||
- run: cargo --version --verbose | ||
- name: Free Disk Space (Ubuntu) | ||
uses: jlumbroso/free-disk-space@main | ||
if: runner.os == 'Linux' | ||
with: | ||
# this might remove tools that are actually needed, | ||
# if set to "true" but frees about 6 GB | ||
|
@@ -35,9 +36,14 @@ jobs: | |
android: true | ||
dotnet: true | ||
haskell: true | ||
large-packages: true | ||
large-packages: false | ||
docker-images: true | ||
swap-storage: true | ||
swap-storage: false | ||
- name: Free disk Space (Windows) | ||
if: runner.os == 'Windows' | ||
run: | | ||
docker system prune --all -f | ||
Remove-Item "C:\Android" -Force -Recurse | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-provider: buildjet | ||
|
@@ -50,6 +56,7 @@ jobs: | |
- name: "Build" | ||
run: cargo build --all | ||
- name: "Test" | ||
if: runner.os == 'Linux' || runner.os == 'macOS' | ||
run: cargo test --all | ||
|
||
# Run examples as separate job because otherwise we will exhaust the disk | ||
|
@@ -68,6 +75,7 @@ jobs: | |
- run: cargo --version --verbose | ||
- name: Free Disk Space (Ubuntu) | ||
uses: jlumbroso/free-disk-space@main | ||
if: runner.os == 'Linux' | ||
with: | ||
# this might remove tools that are actually needed, | ||
# if set to "true" but frees about 6 GB | ||
|
@@ -78,9 +86,14 @@ jobs: | |
android: true | ||
dotnet: true | ||
haskell: true | ||
large-packages: true | ||
large-packages: false | ||
docker-images: true | ||
swap-storage: true | ||
swap-storage: false | ||
- name: Free disk Space (Windows) | ||
if: runner.os == 'Windows' | ||
run: | | ||
docker system prune --all -f | ||
Remove-Item "C:\Android" -Force -Recurse | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-provider: buildjet | ||
|
@@ -185,7 +198,7 @@ jobs: | |
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
fail-fast: false | ||
runs-on: ${{ matrix.platform }} | ||
timeout-minutes: 30 | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: r7kamura/[email protected] | ||
|
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