Skip to content

Commit

Permalink
Replace ephemeral link with forever link
Browse files Browse the repository at this point in the history
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
haixuanTao committed Oct 10, 2023
1 parent 031c445 commit dc78bfd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
|
<a href="https://dora.carsmos.ai/docs/guides/">Guide</a>
|
<a href="https://discord.gg/ucY3AMeu">Discord</a>
<a href="https://discord.gg/UThgXmRK">Discord</a>
</h2>

<div align="center">
Expand Down
2 changes: 1 addition & 1 deletion examples/python-ros2-dataflow/random_turtle.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from dora import Node
import pyarrow as pa

CHECK_TICK = 20
CHECK_TICK = 50

ros2_context = dora.experimental.ros2_bridge.Ros2Context()
ros2_node = ros2_context.new_node(
Expand Down

0 comments on commit dc78bfd

Please sign in to comment.