-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (56 loc) · 2.34 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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