From 7c2ef76efbe63c20a6a7ddecf7be03ab0774a1c2 Mon Sep 17 00:00:00 2001 From: AKuHAK Date: Thu, 2 Jul 2020 10:35:52 +0300 Subject: [PATCH 1/3] Create main.yml --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..30d1063 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + version: ['3.04', '3.10', '3.11', '3.10 modified for the hybrid'] + + steps: + - uses: actions/checkout@v2 + + - name: Install genisoimage + run: sudo apt-get install genisoimage + + - name: Build + working-directory: "PAYLOADS/PAYLOAD ${{ matrix.version }}" + run: | + ls -l + chmod +x build.sh + ./build.sh + - name: Generate iso + run: genisoimage -udf -o "exploit_${{ matrix.version }}.iso" "Filesystems/${{ matrix.version }}" + continue-on-error: true + + - uses: actions/upload-artifact@v2 + with: + name: ${{ matrix.version }} + path: "exploit_${{ matrix.version }}.iso" From 17ee3455337e44dc36b3bb8cd37335c600c77a4a Mon Sep 17 00:00:00 2001 From: AKuHAK Date: Thu, 2 Jul 2020 10:40:57 +0300 Subject: [PATCH 2/3] Update main.yml Workaround: rename folder to be the same structure so matrix will work. --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 30d1063..0ec73c1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,8 +17,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Install genisoimage - run: sudo apt-get install genisoimage + - name: Install genisoimage and rename folder + run: | + sudo apt-get install genisoimage + mv "Filesystems/3.10 + 3.11 hybrid/" "Filesystems/3.10 modified for the hybrid/" - name: Build working-directory: "PAYLOADS/PAYLOAD ${{ matrix.version }}" From d8319ca633f49317695983ef7d0fb216cef992df Mon Sep 17 00:00:00 2001 From: AKuHAK Date: Thu, 2 Jul 2020 12:15:23 +0300 Subject: [PATCH 3/3] Update main.yml --- .github/workflows/main.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0ec73c1..63e311d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,10 +1,6 @@ name: CI -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] +on: [push, pull_request] jobs: build: