mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 01:14:55 -06:00
setup ci
This commit is contained in:
38
.github/workflows/build.yaml
vendored
Normal file
38
.github/workflows/build.yaml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
name: Build and Upload Artifact
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- easy7zip-sf
|
||||
pull_request:
|
||||
branches:
|
||||
- easy7zip-sf
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Build project
|
||||
shell: cmd
|
||||
run: ${{ '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && build.cmd' }}
|
||||
|
||||
- name: Download and unpack Lang
|
||||
shell: cmd
|
||||
run: ${{ 'cd out && curl -L -o official.exe.7z "https://sourceforge.net/projects/sevenzip/files/latest/download" && .\7z x official.exe.7z Lang/ License.txt && DEL official.exe.7z' }}
|
||||
|
||||
- name: Pack
|
||||
shell: cmd
|
||||
run: ${{ 'cd out && COPY 7zipUninstall.exe Uninstall.exe && .\7z a -m0=LZMA -mx=9 install.7z Lang/ 7z.dll 7z.exe 7z.sfx 7zCon.sfx 7zFM.exe 7zG.exe 7-zip.dll Uninstall.exe License.txt && RENAME 7zipInstall.exe 7zipInstall.exe.bak && COPY /Y /B 7zipInstall.exe.bak + install.7z 7zipInstall.exe && DEL Uninstall.exe && DEL install.7z' }}
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Easy_7zip_Artifact
|
||||
# Exclude directories
|
||||
path: |
|
||||
./out/*
|
||||
!./out/*/*
|
||||
@@ -128,4 +128,7 @@ IF %errorlevel% NEQ 0 echo "Error x64 @ 7z.dll" >> errorfile.txt
|
||||
popd
|
||||
|
||||
powershell -Command Copy-Item .\out\*\*.exe,.\out\*\*.dll,.\out\*\*.pdb,.\out\*\*.sfx -Destination .\out\ -Verbose -Force
|
||||
explorer.exe %~dp0out
|
||||
explorer.exe %~dp0out
|
||||
|
||||
rem clear errorlevel
|
||||
type nul
|
||||
|
||||
Reference in New Issue
Block a user