Skip to content

Commit

Permalink
build(ci): test whether modules can be built
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum9Innovation committed Feb 2, 2025
1 parent 9c950dc commit b973db1
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build-modules
on:
workflow_dispatch: # allows manual triggering
push:
pull_request:

jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup CI binary cache
uses: DeterminateSystems/magic-nix-cache-action@main

Check warning on line 16 in .github/workflows/build.yml

View workflow job for this annotation

GitHub Actions / lockfile

Magic Nix Cache is deprecated

Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025. To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead. Replace... uses: DeterminateSystems/magic-nix-cache-action@main ...with... uses: DeterminateSystems/flakehub-cache-action@main For more details: https://dtr.mn/magic-nix-cache-eol

Check warning on line 16 in .github/workflows/build.yml

View workflow job for this annotation

GitHub Actions / lockfile

Magic Nix Cache is deprecated

Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025. To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead. Replace... uses: DeterminateSystems/magic-nix-cache-action@main ...with... uses: DeterminateSystems/flakehub-cache-action@main For more details: https://dtr.mn/magic-nix-cache-eol
- name: Launch Nix development environment and build Nix package manifests
run: cd ..
git clone https://github.com/ArcturusNavigation/arcturus_nix
cd arcturus_nix
chmod +x *.sh
chmod +x ci/*.sh
ci/pull.sh
cp -r ../all_seaing_vehicle dev_ws/src/
nix develop -i --accept-flake-config --keep HOME --command bash -c "build;"
- name: Build modules and run nodes
run: cd ../arcturus_nix
nix develop -i --accept-flake-config --keep HOME --command bash -c "
ci/run.sh all_seaing_autonomy
ci/run.sh all_seaing_bringup
ci/run.sh all_seaing_common
ci/run.sh all_seaing_controller
ci/run.sh all_seaing_description
ci/run.sh all_seaing_driver
ci/run.sh all_seaing_interfaces
ci/run.sh all_seaing_navigation
ci/run.sh all_seaing_perception
ci/run.sh all_seaing_rviz_plugins
ci/run.sh all_seaing_utility
"

0 comments on commit b973db1

Please sign in to comment.