Update build.yml
This commit is contained in:
parent
e2601974ed
commit
a563bd1224
26
.github/workflows/build.yml
vendored
26
.github/workflows/build.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.9' # Use the appropriate Python version
|
||||
python-version: '3.9'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
@ -27,33 +27,49 @@ jobs:
|
||||
|
||||
- name: Prepare directories for build
|
||||
run: |
|
||||
if [ ! -d "sum/input" ]; then mkdir -p sum/input; fi
|
||||
if [ ! -d "sum/output" ]; then mkdir -p sum/output; fi
|
||||
mkdir -p sum/input
|
||||
mkdir -p sum/output
|
||||
|
||||
- name: Run OONI Parser (ooni_domains.lst)
|
||||
run: python "src/step 5 ooni list/ooni_list.py"
|
||||
|
||||
##Community.lst and Domains.lst are already in the sum/input folder
|
||||
|
||||
- name: Run Domain Sum Up script (domains_all.lst)
|
||||
run: python "src/step 5 ooni list/domain_sum.py"
|
||||
|
||||
|
||||
- name: Run OONI Resolver script (ooni_ips.lst)
|
||||
run: python "src/step 5 ooni list/resolver_ooni.py"
|
||||
|
||||
|
||||
|
||||
- name: Run Community Resolver script (ip_community.lst)
|
||||
run: python "src/step 5 ooni list/resolver_community.py"
|
||||
|
||||
|
||||
- name: Run IP Sum (Temp) script (ips_all.lst)
|
||||
run: python "src/step 5 ooni list/ip_4files_sum.py"
|
||||
|
||||
|
||||
- name: Run IP Sum + ASN (Final) script (ipsum.lst)
|
||||
run: python "src/step 5 ooni list/ipsum_bgp.py"
|
||||
|
||||
|
||||
- name: Run Bird2 Converter script
|
||||
run: python "src/step 5 ooni list/bird2_converter.py"
|
||||
|
||||
|
||||
- name: Convert files to LF (Unix format)
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install -y dos2unix
|
||||
find . -type f -name "*.lst" -exec dos2unix {} +
|
||||
|
||||
- name: Verify Output
|
||||
run: |
|
||||
echo "Files in sum/output after build:"
|
||||
ls -la sum/output
|
||||
|
||||
- name: Upload Build Artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: build-results
|
||||
path: sum/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user