-
Notifications
You must be signed in to change notification settings - Fork 164
46 lines (37 loc) · 1.69 KB
/
appimage-armhf.yml
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
name: Scopy armhf AppImage Build
on: [push, pull_request]
env:
BUILD_HOST: ubuntu-20.04
USERNAME: github-actions
jobs:
build_scopy_armhf_appimage:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
set-safe-directory: 'true'
- name: Pull the Docker Image
run: docker pull cristianbindea/scopy2-armhf-appimage:latest
- name: Create Scopy AppImage
shell: bash
run: |
cd $GITHUB_WORKSPACE
sudo apt update
./ci/arm/create_sysroot.sh arm32 install_packages install_qemu
./ci/arm/arm_build_process.sh arm32 generate_ci_envs
docker run \
--mount type=bind,source="$GITHUB_WORKSPACE",target=/home/runner/scopy \
--env-file $GITHUB_WORKSPACE/ci/general/gh-actions.envs \
cristianbindea/scopy2-armhf-appimage:latest \
/bin/bash -c 'cd $HOME && \
sudo chown -R runner:runner scopy && \
cd $HOME/scopy && \
./ci/arm/arm_build_process.sh arm32 install_packages move_tools move_sysroot build_scopy build_iio-emu create_appdir create_appimage move_appimage
'
- name: Set short git commit SHA
shell: bash
run: echo "commit_sha=$(git rev-parse --short ${{ github.sha }})" >> "$GITHUB_ENV"
- uses: actions/upload-artifact@v4
with:
name: scopy-linux-armhf-${{ env.commit_sha }}
path: ${{ github.workspace }}/Scopy-armhf.AppImage