-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (47 loc) · 1.64 KB
/
github-actions.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
47
name: Github actions
'on':
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
timeout-minutes: 360
runs-on: ubuntu-latest
defaults:
run:
working-directory: '${{ github.workspace }}'
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Moses Up
run: |
echo "${{ github.workspace }}" >> $GITHUB_PATH
sudo apt-get update
sudo apt-get install libexpat1
wget -O moses-linux.zip https://docs1.toradex.com/111503-moses-linux.zip && unzip moses-linux.zip && mv ./moses/dist/moses-linux ./moses-linux && rm ./moses-linux.zip && rm -fr ./moses
cd moses-linux
sudo chmod +x moses
sudo chmod +x tdskt
sudo ./moses &
sleep 15
- name: EULA Accept
run: |
sudo ./moses-linux/tdskt platforms
sudo ./moses-linux/tdskt eula nxp-la-opt-v5 setprop accepted true
sudo ./moses-linux/tdskt platforms
- name: Enable Emulation
run: |
./moses-linux/tdskt -p enableemulation
- name: Load Application
run: |
APPID=$(./moses-linux/tdskt load ./appconfig_0/)
echo "APPID=$APPID" >> $GITHUB_ENV
- name: Run application
run: |
ls
mkdir -p appconfig_0/work && cp requirements.txt setup.sh cleanup.sh appconfig_0/work
mkdir -p appconfig_0/work/pythonConsole && rsync -r --copy-unsafe-links -p -g -o -t -q --delete --exclude-from=.rsync-exclude-list . appconfig_0/work/pythonConsole/
./moses-linux/tdskt -p application ${{ env.APPID }} build release