2020-05-01 17:45:30 +08:00
|
|
|
# This is a basic workflow to help you get started with Actions
|
|
|
|
|
|
|
|
name: Test Your PR
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Generate ROA
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
2020-05-01 17:54:34 +08:00
|
|
|
with:
|
2020-05-01 18:11:12 +08:00
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
2020-05-01 17:45:30 +08:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
sudo apt update -qq
|
|
|
|
sudo apt install -y python3 git openssh-client
|
|
|
|
|
|
|
|
- name: Run roa script
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2020-05-02 17:02:38 +08:00
|
|
|
maxlen4=29
|
2020-05-01 17:45:30 +08:00
|
|
|
maxlen6=64
|
|
|
|
mkdir -p roa_dir
|
|
|
|
python3 scripts/roa.py -m ${maxlen4} -M ${maxlen6} -o roa_dir/roa46_bird2.conf
|
|
|
|
python3 scripts/roa.py -m ${maxlen4} -M ${maxlen6} -4 -o roa_dir/roa4_bird2.conf
|
|
|
|
python3 scripts/roa.py -m ${maxlen4} -M ${maxlen6} -6 -o roa_dir/roa6_bird2.conf
|
|
|
|
python3 scripts/roa.py -m ${maxlen4} -M ${maxlen6} -j -o roa_dir/roa46.json
|
2020-05-02 15:02:14 +08:00
|
|
|
python3 scripts/roa.py -m ${maxlen4} -M ${maxlen6} -e -o roa_dir/neonetwork.json
|