Skip to content

Commit

Permalink
[Docker][other]: Support manually building firmware through GitHub Ac…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
Jason-xy committed Jan 25, 2024
1 parent 6f918e7 commit 3c6008d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/manual_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ jobs:
run: git submodule update --init --recursive

- name: Build Bootloader
run: ./docker_build.sh ${{ inputs.branch_name }} ${{ inputs.target_name }} y
run: ./docker_build.sh ${{ inputs.branch_name }} ${{ inputs.target_name }}_bootloader y
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: hkust_nxt_bootloader
path: PX4-Autopilot/build/${{ inputs.target_name }}_bootloader/${{ inputs.target_name }}_bootloader.elf

- name: Build PX4-Autopilot
run: ./docker_build.sh ${{ inputs.branch_name }} ${{ inputs.target_name }}_bootloader y
run: ./docker_build.sh ${{ inputs.branch_name }} ${{ inputs.target_name }} y
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,12 @@ For PX4 1.14.x firmware please use branch *develop_v1.14.x*. I am manually mergi

#### Using Docker

1. compile firmware ` ./start_docker.sh hkust_nxt`
2. compile bootloader ` ./start_docker.sh hkust_nxt_bootloader`
```bash
Usage: ./docker_build.sh <branch_name> <frameware_name>
```

1. compile firmware ` ./docker_build.sh develop_v1.14.x hkust_nxt-v1`
2. compile bootloader ` ./docker_build.sh develop_v1.14.x hkust_nxt-v1_bootloader`

### PX4 Configuration settings

Expand Down

0 comments on commit 3c6008d

Please sign in to comment.