Browse Source

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
tags/v0.3.0-rc
haixuanTao 2 years ago
parent
commit
dc78bfd540
3 changed files with 21 additions and 8 deletions
  1. +19
    -6
      .github/workflows/ci.yml
  2. +1
    -1
      README.md
  3. +1
    -1
      examples/python-ros2-dataflow/random_turtle.py

+ 19
- 6
.github/workflows/ci.yml View File

@@ -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/rust-problem-matchers@v1.1.0
- 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/rust-problem-matchers@v1.1.0


+ 1
- 1
README.md View File

@@ -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">


+ 1
- 1
examples/python-ros2-dataflow/random_turtle.py View File

@@ -7,7 +7,7 @@ import dora
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(


Loading…
Cancel
Save