Skip to content

Commit

Permalink
Use downloaded artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
juadde committed May 17, 2024
1 parent 886fbc6 commit 6845796
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,25 @@ jobs:
run: wget ${LUA_URL}/lua-${LUA_VERSION}.tar.gz -O lua.tar.gz

# Store Sources as artifacts for future stages
- name: Archive DLL as artifact
- name: Archive LuaBitOp sources as artifact
uses: actions/upload-artifact@v4
with:
name: LuaBitOp-Sources
path: bitop.zip
if-no-files-found: error
- name: Archive DLL as artifact
- name: Archive Wireshark sources as artifact
uses: actions/upload-artifact@v4
with:
name: Wireshark-Sources
path: wireshark.tar.xz
if-no-files-found: error
- name: Archive DLL as artifact
- name: Archive Winreshark windows installer as artifact
uses: actions/upload-artifact@v4
with:
name: Wireshark-Windows-Executable
name: Wireshark-Windows-Installer
path: wireshark.exe
if-no-files-found: error
- name: Archive DLL as artifact
- name: Archive Lua sources as artifact
uses: actions/upload-artifact@v4
with:
name: Lua-Sources
Expand All @@ -78,28 +78,26 @@ jobs:
needs: dependency_download
steps:
# Get all sources
- name: Get LuaBitOp
run: Invoke-WebRequest -Uri http://bitop.luajit.org/download/LuaBitOp-${env:LUABITOP_VERSION}.zip -OutFile dll.zip
- name: Get Wireshark
run: Invoke-WebRequest -Uri https://2.na.dl.wireshark.org/win64/Wireshark-${env:WIRESHARK_VERSION}-x64.exe -OutFile wireshark.exe
- name: Get Lua
run: Invoke-WebRequest -Uri https://www.lua.org/ftp/lua-${env:LUA_VERSION}.tar.gz -OutFile lua.tar.gz

# Store Wireshark as artifact for future usage
- name: Archive wireshark.exe as artifact
uses: actions/upload-artifact@v4
- name: Download LuaBitOp sources
uses: actions/download-artifact@v4
with:
name: Wireshark
path: wireshark.exe
if-no-files-found: error
name: LuaBitOp-Sources
- name: Download Wireshark installer
uses: actions/download-artifact@v4
with:
name: Wireshark-Windows-Installer
- name: Download Lua sources
uses: actions/download-artifact@v4
with:
name: Lua-Sources

# Extract / rename folders and delete downloads
- name: Unzip DLL source code
run: tar -xf dll.zip
run: tar -xf bitop.zip
- name: Normalize DLL source code folder
run: mv LuaBitOp* dll
- name: Delete DLL source code archive
run: rm dll.zip
run: rm bitop.zip
- name: Unzip Lua source code
run: tar -xf lua.tar.gz
- name: Normalize Lua source code folder
Expand Down

0 comments on commit 6845796

Please sign in to comment.