forked from e-m-b-a/emba
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (54 loc) · 1.83 KB
/
default_install.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
48
49
50
51
52
53
54
55
56
57
58
name: EMBA default installation on Ubuntu
on:
schedule:
- cron: '0 0 * * *' # do it every day
# push:
# branches:
# - '**' # matches every branch
# pull_request:
# branches:
# - '**'
# # Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
default-install:
if: github.repository_owner == 'e-m-b-a'
runs-on: ubuntu-22.04
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: false
swap-storage: true
- name: EMBA default install
uses: nick-fields/retry@v2
with:
timeout_minutes: 600
max_attempts: 3
command: |
sudo rm -r ./external || true
sudo ./installer.sh -g
NO_UPDATE_CHECK=1 sudo -E ./emba -d 1 -y
- name: EMBA firmware download
run: |
sudo apt-get update
sudo apt-get install wget
wget https://ftp.dlink.de/dir/dir-300/archive/driver_software/DIR-300_fw_revb_214b01_ALL_de_20130206.zip
- name: EMBA default analysis
run: |
NO_UPDATE_CHECK=1 sudo -E ./emba -f ./DIR-300_fw_revb_214b01_ALL_de_20130206.zip -l ./logs_emba -S -p ./scan-profiles/default-scan.emba -y
- name: Check result files exist
id: check_files
uses: andstor/file-existence-action@v2
with:
files: "./logs_emba/emba.log, ./logs_emba/csv_logs/f50_base_aggregator.csv, ./logs_emba/html-report/index.html"
- name: Files exist
if: steps.check_files.outputs.files_exists == 'true'
# Only runs if all of the files exist
run: echo All files exist!