Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/SashaXser/GoodbyeDPI into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaXser committed Aug 13, 2024
2 parents e705b33 + b565763 commit 0c992e9
Showing 1 changed file with 29 additions and 12 deletions.
41 changes: 29 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,33 @@ jobs:
run: |
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Install Clang and dependencies
run: |
sudo apt update &&
sudo apt install -y clang lld mingw-w64
- name: Install MinGW-w64
run: >
sudo rm /var/lib/man-db/auto-update &&
sudo DEBIAN_FRONTEND=noninteractive XZ_DEFAULTS="-T0" XZ_OPT="-T0" eatmydata
apt install -y --no-install-recommends gcc-mingw-w64
- name: Download WinDivert from cache
id: windivert-cache
uses: actions/cache@v4
with:
path: ${{ env.WINDIVERT_NAME }}
key: ${{ env.WINDIVERT_SHA256 }}
path: ${{ env. WINDIVERT_NAME }}
key: ${{ env. WINDIVERT_SHA256 }}

- name: Download WinDivert from the website
if: steps.windivert-cache.outputs.cache-hit != 'true'
run: |
wget ${{ env.WINDIVERT_URL }} &&
(echo ${{ env.WINDIVERT_SHA256 }} ${{ env.WINDIVERT_NAME }} | sha256sum -c)
run: >
wget ${{ env. WINDIVERT_URL }} &&
(echo ${{ env. WINDIVERT_SHA256 }} ${{ env. WINDIVERT_NAME }} | sha256sum -c)
- name: Unpack WinDivert
run: unzip ${{ env.WINDIVERT_NAME }}
run: unzip ${{ env. WINDIVERT_NAME }}

- name: Compile x86_64
run: |
run: >
cd src && make clean &&
make CPREFIX=x86_64-w64-mingw32- BIT64=1 WINDIVERTHEADERS=../${{ env.WINDIVERT_BASENAME }}/include WINDIVERTLIBS=../${{ env.WINDIVERT_BASENAME }}/x64 -j4
- name: Prepare x86_64 directory
run: |
mkdir goodbyedpi_x86_64_${{ steps.vars.outputs.sha_short }}
Expand All @@ -59,3 +60,19 @@ jobs:
with:
name: goodbyedpi_x86_64_${{ steps.vars.outputs.sha_short }}
path: goodbyedpi_x86_64_${{ steps.vars.outputs.sha_short }}

# - name: Compile i686
# run: >
# cd src && make clean &&
# make CPREFIX=i686-w64-mingw32- WINDIVERTHEADERS=../${{ env.WINDIVERT_BASENAME }}/include WINDIVERTLIBS=../${{ env.WINDIVERT_BASENAME }}/x86 -j4

# - name: Prepare x86 directory
# run: |
# mkdir goodbyedpi_x86_${{ steps.vars.outputs.sha_short }}
# cp src/goodbyedpi.exe ${{ env.WINDIVERT_BASENAME }}/x86/*.{dll,sys} goodbyedpi_x86_${{ steps.vars.outputs.sha_short }}

# - name: Upload output file x86
# uses: actions/upload-artifact@v3
# with:
# name: goodbyedpi_x86_${{ steps.vars.outputs.sha_short }}
# path: goodbyedpi_x86_${{ steps.vars.outputs.sha_short }}

0 comments on commit 0c992e9

Please sign in to comment.