Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
noeltimothy committed Sep 18, 2024
1 parent 3e6d92d commit 85bcb65
Showing 1 changed file with 47 additions and 39 deletions.
86 changes: 47 additions & 39 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,52 +15,60 @@ jobs:
CMAKE_PREFIX_PATH: D:\a\wireshark\Qt\6.2.3\msvc2019_64
WIRESHARK_VERSION_EXTRA: -GithubActionBuild
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create cache directory
run: mkdir "C:\choco"
#- name: Checkout
# uses: actions/checkout@v4
#- name: Create cache directory
# run: mkdir "C:\choco"

- name: cache
uses: actions/cache@v3
with:
path: C:\choco
key: C:\choco
# - name: cache
# uses: actions/cache@v3
# with:
# path: C:\choco
# key: C:\choco

- name: cache
uses: actions/cache@v3
id: cache-chocolatey
uses: actions/cache@v4
with:
path: C:\ProgramData\chocolatey\lib
key: "ABCD"

- name: do we have git already?
if: steps.cache-chocolatey.outputs.cache-hit != 'true'
run: choco install -y git --force

- name: Set Chocolatey cache location
run: choco config set cacheLocation "C:\choco"
- name: use existing git
run: C:\ProgramData\chocolatey\lib\git\bin\git.exe

- name: install xsltproc
run: choco install -y xsltproc
#- name: Set Chocolatey cache location
#run: choco config set cacheLocation "C:\choco"

- name: checkout wireshark
run: cd wireshark/build-scripts/ && C:\choco-cache\git\bin\git.exe clone -o upstream --branch wireshark-4.4.0 https://gitlab.com/wireshark/wireshark.git --depth=500
- name: Choco install
run: choco install -y asciidoctorj xsltproc docbook-bundle nsis winflexbison3 cmake
- name: Install strawberryperl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: '5.30'
distribution: strawberry
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
with:
vs-version: 16.8
- name: Mkdir
run: mkdir build
- name: Cmake
run: cmake -DCMAKE_SYSTEM_VERSION="10.0.20348.0" -A x64 ..
env:
PLATFORM: x64
WIRESHARK_BASE_DIR: C:/wireshark-libs
QT5_BASE_DIR: C:/Qt/5.12.3/msvc2017_64
working-directory: build
- name: Build
run: cmake --build . --config RelWithDebInfo
working-directory: build
#- name: install xsltproc
#run: choco install -y xsltproc

#- name: checkout wireshark
#run: cd wireshark/build-scripts/ && C:\choco-cache\git\bin\git.exe clone -o upstream --branch wireshark-4.4.0 https://gitlab.com/wireshark/wireshark.git --depth=500
#- name: Choco install
#run: choco install -y asciidoctorj xsltproc docbook-bundle nsis winflexbison3 cmake
#- name: Install strawberryperl
#uses: shogo82148/actions-setup-perl@v1
#with:
#perl-version: '5.30'
# distribution: strawberry
#- name: Add msbuild to PATH
#uses: microsoft/setup-msbuild@v2
#with:
#vs-version: 16.8
#- name: Mkdir
#run: mkdir build
#- name: Cmake
#run: cmake -DCMAKE_SYSTEM_VERSION="10.0.20348.0" -A x64 ..
#env:
#PLATFORM: x64
#WIRESHARK_BASE_DIR: C:/wireshark-libs
#QT5_BASE_DIR: C:/Qt/5.12.3/msvc2017_64
#working-directory: build
#- name: Build
#run: cmake --build . --config RelWithDebInfo
#working-directory: build

0 comments on commit 85bcb65

Please sign in to comment.