Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(nix): create variant launch files #107

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
build:
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 / build

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 / build

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 / build

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.sh;";
- 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;
"
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ bag/

# Vim related
.swp

# Nix related
# ignore package.nix in favor of package.xml
package.nix
Loading
Loading