Merge pull request #9 from mklomp/v0.1.1 #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Upload | |
on: | |
[push] | |
permissions: | |
contents: write | |
jobs: | |
shellcheck: | |
uses: ./.github/workflows/shellcheck.yml | |
shfmt: | |
uses: ./.github/workflows/shfmt.yml | |
build-and-push: | |
# container: | |
# image: ubuntu:22.04 | |
# options: --privileged | |
runs-on: ubuntu-latest | |
needs: [shellcheck, shfmt] | |
strategy: | |
matrix: | |
image: [ | |
# mirte_orangepizero, | |
mirte_orangepizero2, | |
mirte_orangepi3b, | |
mirte_rpi4b | |
] | |
fail-fast: false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: setup this repo | |
run: | | |
sudo apt update | |
sudo apt install qemu-user-static parted -y | |
./packerInstall.sh | |
# - name: setup build files | |
# run: | | |
# echo -e "#!/bin/bash\n\nexport INSTALL_DOCS=false\nexport INSTALL_ROS=false\nexport INSTALL_ARDUINO=false\nexport INSTALL_WEB=false\nexport INSTALL_PYTHON=false\nexport INSTALL_JUPYTER=false\nexport EXPIRE_PASSWD=true\nexport INSTALL_NETWORK=true\nexport INSTALL_PROVISIONING=true\nexport INSTALL_VSCODE=true\nexport INSTALL_PAM=true\nexport EXTRA_SCRIPTS=()\nexport PARALLEL=true" > settings.sh | |
# - name: setup repos | |
# run: | | |
# cp main_repos.yaml repos.yaml | |
# yq e -i '.repositories.mirte-ros-packages.version = "fix-intro-rob"' repos.yaml | |
# yq e -i '.repositories.mirte-telemetrix4arduino.url = "https://github.com/arendjan/telemetrix4arduino.git"' repos.yaml | |
# yq e -i '.repositories.mirte-telemetrix4arduino.version = "fix-intro-robotics"' repos.yaml | |
- name: Build | |
run: | | |
./packerBuild.sh ${{ matrix.image }} | |
- name: artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
path: build/*.img.xz | |
name: ${{ matrix.image }} | |
overwrite: true | |
- name: Push to release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: build/*.img.xz |