From 3b3f27c83e1c631eba0f926090403ede5130444f Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 18 Nov 2023 00:44:40 +0800 Subject: improve ci --- .github/workflows/windows.yml | 73 +++++++++++-------------------------------- 1 file changed, 18 insertions(+), 55 deletions(-) (limited to '.github') diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index d801f8a60..83cb1c9c1 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -46,16 +46,13 @@ jobs: path: xmake-cache key: ${{ matrix.os }}-${{ matrix.arch }} - - name: Prepare + - name: Set release arch name run: | - xmake show - curl -fsSL "https://github.com/xmake-mirror/nsis/releases/download/v309/nsis-3.09.zip" -o ./nsis.zip - curl -fsSL "https://github.com/xmake-mirror/nsis/releases/download/v309/nsis-3.09-strlen_8192.zip" -o ./nsis-longstr.zip - curl -fsSL "https://github.com/xmake-mirror/nsis/releases/download/v309/UAC.zip" -o ./nsis-uac.zip - Expand-Archive ./nsis.zip -DestinationPath ./nsis - Expand-Archive ./nsis-longstr.zip -DestinationPath ./nsis -Force - Expand-Archive ./nsis-uac.zip -DestinationPath ./nsis -Force - Move-Item ./nsis/UAC.nsh ./nsis/Include/ + if ("${{ matrix.arch }}" -eq "x64") { + Write-Output "RELEASE_NAME=win64" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf-8 -Append + } else { + Write-Output "RELEASE_NAME=win32" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf-8 -Append + } - name: Build run: | @@ -64,6 +61,15 @@ jobs: xmake -vD cd .. + - name: Artifact + run: | + cd core + xmake pack -vD --formats=nsis --autobuild=n -o ./artifacts/${{env.RELEASE_NAME}} --basename=xmake.exe + xmake pack -vD --formats=zip --autobuild=n -o ./artifacts/${{env.RELEASE_NAME}} --basename=xmake.zip + (Get-FileHash ./artifacts/${{env.RELEASE_NAME}}/xmake.zip -Algorithm SHA256).Hash.ToLower() + " *xmake.zip`n" | Out-File ./shafile -Encoding ASCII -NoNewLine -Append + Copy-Item shafile ./artifacts/${{env.RELEASE_NAME}} + cd .. + - name: Tests run: | Copy-Item ./core/build/xmake.exe ./xmake @@ -74,51 +80,8 @@ jobs: Set-Item -Path Env:Path -Value ($Env:XMAKE_PROGRAM_DIR + ";" + $Env:Path) xrepo --version xmake show - #xmake l -v private.utils.bcsave --rootname='@programdir' -x 'scripts/**|templates/**' xmake xmake lua -v -D tests/run.lua - - name: Set release arch name - run: | - if ("${{ matrix.arch }}" -eq "x64") { - Write-Output "RELEASE_NAME=win64" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf-8 -Append - } else { - Write-Output "RELEASE_NAME=win32" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf-8 -Append - } - - name: Artifact - run: | - # build installer - (New-Item ./winenv/bin -ItemType Directory).FullName - curl -fsSL "https://github.com/xmake-mirror/7zip/releases/download/19.00/7z19.00-${{ matrix.arch }}.zip" -o .\7zip.zip - Expand-Archive ./7zip.zip -DestinationPath ./7zip - Copy-Item ./7zip/7z.exe ./winenv/bin - Copy-Item ./7zip/7z.dll ./winenv/bin - curl -fsSL "https://curl.se/windows/dl-8.2.1_11/curl-8.2.1_11-win32-mingw.zip" -o .\curl.zip - Expand-Archive ./curl.zip -DestinationPath ./curl - Copy-Item ./curl/curl-8.2.1_11-win32-mingw/bin/curl.exe ./winenv/bin - Copy-Item ./curl/curl-8.2.1_11-win32-mingw/bin/curl-ca-bundle.crt ./winenv/bin - $version = (Get-Command xmake/xmake.exe).FileVersionInfo - ./nsis/makensis.exe /DMAJOR=$($version.ProductMajorPart) /DMINOR=$($version.ProductMinorPart) /DALTER=$($version.ProductBuildPart) /DBUILD=$($($version.ProductVersion -split '\+')[1]) /D${{ matrix.arch }} .\scripts\installer.nsi - (New-Item ./artifacts/${{env.RELEASE_NAME}} -ItemType Directory).FullName - Copy-Item scripts/xmake.exe ./artifacts/${{env.RELEASE_NAME}}/xmake.exe - # archive - Copy-Item ./*.md ./xmake - Copy-Item ./winenv ./xmake -Recurse - Add-Type -AssemblyName System.Text.Encoding - Add-Type -AssemblyName System.IO.Compression.FileSystem - class FixedEncoder : System.Text.UTF8Encoding { - FixedEncoder() : base($true) { } - [byte[]] GetBytes([string] $s) - { - $s = $s.Replace("\", "/") - return ([System.Text.UTF8Encoding]$this).GetBytes($s) - } - } - Copy-Item ./xmake ./archive/xmake -Recurse - [System.IO.Compression.ZipFile]::CreateFromDirectory("$PWD\archive", "$PWD\archive.zip", [System.IO.Compression.CompressionLevel]::Optimal, $false, [FixedEncoder]::new()) - (Get-FileHash .\archive.zip -Algorithm SHA256).Hash.ToLower() + " *xmake.zip`n" | Out-File ./shafile -Encoding ASCII -NoNewLine -Append - Copy-Item archive.zip ./artifacts/${{env.RELEASE_NAME}} - Copy-Item shafile ./artifacts/${{env.RELEASE_NAME}} - # upload artifacts - uses: actions/upload-artifact@v2 with: @@ -127,7 +90,7 @@ jobs: - uses: actions/upload-artifact@v2 with: name: xmake-latest.${{ env.RELEASE_NAME }}.zip - path: artifacts/${{env.RELEASE_NAME}}/archive.zip + path: artifacts/${{env.RELEASE_NAME}}/xmake.zip - uses: actions/upload-artifact@v2 with: name: xmake-latest.${{ env.RELEASE_NAME }}.sha256 @@ -156,7 +119,7 @@ jobs: uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/${{env.RELEASE_NAME}}/archive.zip + file: artifacts/${{env.RELEASE_NAME}}/xmake.zip asset_name: xmake-${{ env.GITHUB_REF_SLUG }}.${{ env.RELEASE_NAME }}.zip tag: ${{ steps.previoustag.outputs.tag }} overwrite: true @@ -180,7 +143,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ github.event.release.upload_url }} - asset_path: artifacts/${{env.RELEASE_NAME}}/archive.zip + asset_path: artifacts/${{env.RELEASE_NAME}}/xmake.zip asset_name: xmake-${{ steps.tagName.outputs.tag }}.${{ env.RELEASE_NAME }}.zip asset_content_type: application/zip -- cgit v1.3.1 From a534df592256c48fa8f8eb4da2fe70d401c9ca3a Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 18 Nov 2023 00:48:27 +0800 Subject: update ci --- .github/workflows/windows_luajit.yml | 61 +++++++++++------------------------- 1 file changed, 18 insertions(+), 43 deletions(-) (limited to '.github') diff --git a/.github/workflows/windows_luajit.yml b/.github/workflows/windows_luajit.yml index 3c81db731..8b715a260 100644 --- a/.github/workflows/windows_luajit.yml +++ b/.github/workflows/windows_luajit.yml @@ -46,6 +46,14 @@ jobs: Expand-Archive ./nsis-uac.zip -DestinationPath ./nsis -Force Move-Item ./nsis/UAC.nsh ./nsis/Include/ + - name: Set release arch name + run: | + if ("${{ matrix.arch }}" -eq "x64") { + Write-Output "RELEASE_NAME=win64" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf-8 -Append + } else { + Write-Output "RELEASE_NAME=win32" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf-8 -Append + } + - name: Build run: | cd core @@ -53,6 +61,15 @@ jobs: xmake -vD cd .. + - name: Artifact + run: | + cd core + xmake pack -vD --formats=nsis --autobuild=n -o ./artifacts/${{env.RELEASE_NAME}} --basename=xmake.exe + xmake pack -vD --formats=zip --autobuild=n -o ./artifacts/${{env.RELEASE_NAME}} --basename=xmake.zip + (Get-FileHash ./artifacts/${{env.RELEASE_NAME}}/xmake.zip -Algorithm SHA256).Hash.ToLower() + " *xmake.zip`n" | Out-File ./shafile -Encoding ASCII -NoNewLine -Append + Copy-Item shafile ./artifacts/${{env.RELEASE_NAME}} + cd .. + - name: Tests run: | Copy-Item ./core/build/xmake.exe ./xmake @@ -64,48 +81,6 @@ jobs: xmake show xmake lua -v -D tests/run.lua - - name: Set release arch name - run: | - if ("${{ matrix.arch }}" -eq "x64") { - Write-Output "RELEASE_NAME=win64" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf-8 -Append - } else { - Write-Output "RELEASE_NAME=win32" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf-8 -Append - } - - name: Artifact - run: | - # build installer - (New-Item ./winenv/bin -ItemType Directory).FullName - curl -fsSL "https://github.com/xmake-mirror/7zip/releases/download/19.00/7z19.00-${{ matrix.arch }}.zip" -o .\7zip.zip - Expand-Archive ./7zip.zip -DestinationPath ./7zip - Copy-Item ./7zip/7z.exe ./winenv/bin - Copy-Item ./7zip/7z.dll ./winenv/bin - curl -fsSL "https://curl.se/windows/dl-8.2.1_11/curl-8.2.1_11-win32-mingw.zip" -o .\curl.zip - Expand-Archive ./curl.zip -DestinationPath ./curl - Copy-Item ./curl/curl-8.2.1_11-win32-mingw/bin/curl.exe ./winenv/bin - Copy-Item ./curl/curl-8.2.1_11-win32-mingw/bin/curl-ca-bundle.crt ./winenv/bin - $version = (Get-Command xmake/xmake.exe).FileVersionInfo - ./nsis/makensis.exe /DMAJOR=$($version.ProductMajorPart) /DMINOR=$($version.ProductMinorPart) /DALTER=$($version.ProductBuildPart) /DBUILD=$($($version.ProductVersion -split '\+')[1]) /D${{ matrix.arch }} .\scripts\installer.nsi - (New-Item ./artifacts/${{env.RELEASE_NAME}} -ItemType Directory).FullName - Copy-Item scripts/xmake.exe ./artifacts/${{env.RELEASE_NAME}}/xmake.exe - # archive - Copy-Item ./*.md ./xmake - Copy-Item ./winenv ./xmake -Recurse - Add-Type -AssemblyName System.Text.Encoding - Add-Type -AssemblyName System.IO.Compression.FileSystem - class FixedEncoder : System.Text.UTF8Encoding { - FixedEncoder() : base($true) { } - [byte[]] GetBytes([string] $s) - { - $s = $s.Replace("\", "/") - return ([System.Text.UTF8Encoding]$this).GetBytes($s) - } - } - Copy-Item ./xmake ./archive/xmake -Recurse - [System.IO.Compression.ZipFile]::CreateFromDirectory("$PWD\archive", "$PWD\archive.zip", [System.IO.Compression.CompressionLevel]::Optimal, $false, [FixedEncoder]::new()) - (Get-FileHash .\archive.zip -Algorithm SHA256).Hash.ToLower() + " *xmake.zip`n" | Out-File ./shafile -Encoding ASCII -NoNewLine -Append - Copy-Item archive.zip ./artifacts/${{env.RELEASE_NAME}} - Copy-Item shafile ./artifacts/${{env.RELEASE_NAME}} - # upload artifacts - uses: actions/upload-artifact@v2 with: @@ -114,7 +89,7 @@ jobs: - uses: actions/upload-artifact@v2 with: name: xmake-latest.${{ env.RELEASE_NAME }}.zip - path: artifacts/${{env.RELEASE_NAME}}/archive.zip + path: artifacts/${{env.RELEASE_NAME}}/xmake.zip - uses: actions/upload-artifact@v2 with: name: xmake-latest.${{ env.RELEASE_NAME }}.sha256 -- cgit v1.3.1 From 58541b5738dad8f66ee1ec3317c9aa2ce5b94fff Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 18 Nov 2023 00:51:49 +0800 Subject: fix ci --- .github/workflows/windows.yml | 4 ++-- .github/workflows/windows_luajit.yml | 15 ++------------- 2 files changed, 4 insertions(+), 15 deletions(-) (limited to '.github') diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 83cb1c9c1..c3d21ae65 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -64,8 +64,8 @@ jobs: - name: Artifact run: | cd core - xmake pack -vD --formats=nsis --autobuild=n -o ./artifacts/${{env.RELEASE_NAME}} --basename=xmake.exe - xmake pack -vD --formats=zip --autobuild=n -o ./artifacts/${{env.RELEASE_NAME}} --basename=xmake.zip + xmake pack -vD --formats=nsis --autobuild=n -o ./artifacts/${{env.RELEASE_NAME}} --basename=xmake + xmake pack -vD --formats=zip --autobuild=n -o ./artifacts/${{env.RELEASE_NAME}} --basename=xmake (Get-FileHash ./artifacts/${{env.RELEASE_NAME}}/xmake.zip -Algorithm SHA256).Hash.ToLower() + " *xmake.zip`n" | Out-File ./shafile -Encoding ASCII -NoNewLine -Append Copy-Item shafile ./artifacts/${{env.RELEASE_NAME}} cd .. diff --git a/.github/workflows/windows_luajit.yml b/.github/workflows/windows_luajit.yml index 8b715a260..d8f087e3f 100644 --- a/.github/workflows/windows_luajit.yml +++ b/.github/workflows/windows_luajit.yml @@ -35,17 +35,6 @@ jobs: - uses: little-core-labs/get-git-tag@v3.0.2 id: tagName - - name: Prepare - run: | - xmake show - curl -fsSL "https://github.com/xmake-mirror/nsis/releases/download/v309/nsis-3.09.zip" -o ./nsis.zip - curl -fsSL "https://github.com/xmake-mirror/nsis/releases/download/v309/nsis-3.09-strlen_8192.zip" -o ./nsis-longstr.zip - curl -fsSL "https://github.com/xmake-mirror/nsis/releases/download/v309/UAC.zip" -o ./nsis-uac.zip - Expand-Archive ./nsis.zip -DestinationPath ./nsis - Expand-Archive ./nsis-longstr.zip -DestinationPath ./nsis -Force - Expand-Archive ./nsis-uac.zip -DestinationPath ./nsis -Force - Move-Item ./nsis/UAC.nsh ./nsis/Include/ - - name: Set release arch name run: | if ("${{ matrix.arch }}" -eq "x64") { @@ -64,8 +53,8 @@ jobs: - name: Artifact run: | cd core - xmake pack -vD --formats=nsis --autobuild=n -o ./artifacts/${{env.RELEASE_NAME}} --basename=xmake.exe - xmake pack -vD --formats=zip --autobuild=n -o ./artifacts/${{env.RELEASE_NAME}} --basename=xmake.zip + xmake pack -vD --formats=nsis --autobuild=n -o ./artifacts/${{env.RELEASE_NAME}} --basename=xmake + xmake pack -vD --formats=zip --autobuild=n -o ./artifacts/${{env.RELEASE_NAME}} --basename=xmake (Get-FileHash ./artifacts/${{env.RELEASE_NAME}}/xmake.zip -Algorithm SHA256).Hash.ToLower() + " *xmake.zip`n" | Out-File ./shafile -Encoding ASCII -NoNewLine -Append Copy-Item shafile ./artifacts/${{env.RELEASE_NAME}} cd .. -- cgit v1.3.1 From 795517d597f03a5c847a3d3c998b46c866cc1d8a Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 18 Nov 2023 00:56:58 +0800 Subject: fix artifact path --- .github/workflows/windows.yml | 8 ++++---- .github/workflows/windows_luajit.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to '.github') diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index c3d21ae65..b89c1a168 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -64,10 +64,10 @@ jobs: - name: Artifact run: | cd core - xmake pack -vD --formats=nsis --autobuild=n -o ./artifacts/${{env.RELEASE_NAME}} --basename=xmake - xmake pack -vD --formats=zip --autobuild=n -o ./artifacts/${{env.RELEASE_NAME}} --basename=xmake - (Get-FileHash ./artifacts/${{env.RELEASE_NAME}}/xmake.zip -Algorithm SHA256).Hash.ToLower() + " *xmake.zip`n" | Out-File ./shafile -Encoding ASCII -NoNewLine -Append - Copy-Item shafile ./artifacts/${{env.RELEASE_NAME}} + xmake pack -vD --formats=nsis --autobuild=n -o ../artifacts/${{env.RELEASE_NAME}} --basename=xmake + xmake pack -vD --formats=zip --autobuild=n -o ../artifacts/${{env.RELEASE_NAME}} --basename=xmake + (Get-FileHash ../artifacts/${{env.RELEASE_NAME}}/xmake.zip -Algorithm SHA256).Hash.ToLower() + " *xmake.zip`n" | Out-File ./shafile -Encoding ASCII -NoNewLine -Append + Copy-Item shafile ../artifacts/${{env.RELEASE_NAME}} cd .. - name: Tests diff --git a/.github/workflows/windows_luajit.yml b/.github/workflows/windows_luajit.yml index d8f087e3f..f504ce836 100644 --- a/.github/workflows/windows_luajit.yml +++ b/.github/workflows/windows_luajit.yml @@ -53,10 +53,10 @@ jobs: - name: Artifact run: | cd core - xmake pack -vD --formats=nsis --autobuild=n -o ./artifacts/${{env.RELEASE_NAME}} --basename=xmake - xmake pack -vD --formats=zip --autobuild=n -o ./artifacts/${{env.RELEASE_NAME}} --basename=xmake - (Get-FileHash ./artifacts/${{env.RELEASE_NAME}}/xmake.zip -Algorithm SHA256).Hash.ToLower() + " *xmake.zip`n" | Out-File ./shafile -Encoding ASCII -NoNewLine -Append - Copy-Item shafile ./artifacts/${{env.RELEASE_NAME}} + xmake pack -vD --formats=nsis --autobuild=n -o ../artifacts/${{env.RELEASE_NAME}} --basename=xmake + xmake pack -vD --formats=zip --autobuild=n -o ../artifacts/${{env.RELEASE_NAME}} --basename=xmake + (Get-FileHash ../artifacts/${{env.RELEASE_NAME}}/xmake.zip -Algorithm SHA256).Hash.ToLower() + " *xmake.zip`n" | Out-File ./shafile -Encoding ASCII -NoNewLine -Append + Copy-Item shafile ../artifacts/${{env.RELEASE_NAME}} cd .. - name: Tests -- cgit v1.3.1 From 5b5c06f073e03268fc2eb86780183866feeb8c32 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 18 Nov 2023 00:16:05 +0800 Subject: improve artifact --- .github/workflows/windows.yml | 3 +-- .github/workflows/windows_luajit.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to '.github') diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index b89c1a168..8a542fb49 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -64,8 +64,7 @@ jobs: - name: Artifact run: | cd core - xmake pack -vD --formats=nsis --autobuild=n -o ../artifacts/${{env.RELEASE_NAME}} --basename=xmake - xmake pack -vD --formats=zip --autobuild=n -o ../artifacts/${{env.RELEASE_NAME}} --basename=xmake + xmake pack -vD --formats=nsis,zip --autobuild=n -o ../artifacts/${{env.RELEASE_NAME}} --basename=xmake (Get-FileHash ../artifacts/${{env.RELEASE_NAME}}/xmake.zip -Algorithm SHA256).Hash.ToLower() + " *xmake.zip`n" | Out-File ./shafile -Encoding ASCII -NoNewLine -Append Copy-Item shafile ../artifacts/${{env.RELEASE_NAME}} cd .. diff --git a/.github/workflows/windows_luajit.yml b/.github/workflows/windows_luajit.yml index f504ce836..7e4d34b63 100644 --- a/.github/workflows/windows_luajit.yml +++ b/.github/workflows/windows_luajit.yml @@ -53,8 +53,7 @@ jobs: - name: Artifact run: | cd core - xmake pack -vD --formats=nsis --autobuild=n -o ../artifacts/${{env.RELEASE_NAME}} --basename=xmake - xmake pack -vD --formats=zip --autobuild=n -o ../artifacts/${{env.RELEASE_NAME}} --basename=xmake + xmake pack -vD --formats=nsis,zip --autobuild=n -o ../artifacts/${{env.RELEASE_NAME}} --basename=xmake (Get-FileHash ../artifacts/${{env.RELEASE_NAME}}/xmake.zip -Algorithm SHA256).Hash.ToLower() + " *xmake.zip`n" | Out-File ./shafile -Encoding ASCII -NoNewLine -Append Copy-Item shafile ../artifacts/${{env.RELEASE_NAME}} cd .. -- cgit v1.3.1 From fd3b2a8a2dc1a6e9990ad24f76d69f1822109d06 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 19 Nov 2023 00:03:05 +0800 Subject: add -y for pack --- .github/workflows/windows.yml | 2 +- .github/workflows/windows_luajit.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 8a542fb49..8c1aa00a0 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -64,7 +64,7 @@ jobs: - name: Artifact run: | cd core - xmake pack -vD --formats=nsis,zip --autobuild=n -o ../artifacts/${{env.RELEASE_NAME}} --basename=xmake + xmake pack -vD -y --formats=nsis,zip --autobuild=n -o ../artifacts/${{env.RELEASE_NAME}} --basename=xmake (Get-FileHash ../artifacts/${{env.RELEASE_NAME}}/xmake.zip -Algorithm SHA256).Hash.ToLower() + " *xmake.zip`n" | Out-File ./shafile -Encoding ASCII -NoNewLine -Append Copy-Item shafile ../artifacts/${{env.RELEASE_NAME}} cd .. diff --git a/.github/workflows/windows_luajit.yml b/.github/workflows/windows_luajit.yml index 7e4d34b63..36862a0ae 100644 --- a/.github/workflows/windows_luajit.yml +++ b/.github/workflows/windows_luajit.yml @@ -53,7 +53,7 @@ jobs: - name: Artifact run: | cd core - xmake pack -vD --formats=nsis,zip --autobuild=n -o ../artifacts/${{env.RELEASE_NAME}} --basename=xmake + xmake pack -vD -y --formats=nsis,zip --autobuild=n -o ../artifacts/${{env.RELEASE_NAME}} --basename=xmake (Get-FileHash ../artifacts/${{env.RELEASE_NAME}}/xmake.zip -Algorithm SHA256).Hash.ToLower() + " *xmake.zip`n" | Out-File ./shafile -Encoding ASCII -NoNewLine -Append Copy-Item shafile ../artifacts/${{env.RELEASE_NAME}} cd .. -- cgit v1.3.1 From 38a7020724bfe108ce008befe8be8fbb68226f59 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 19 Nov 2023 00:07:59 +0800 Subject: update repo --- .github/workflows/windows.yml | 1 + .github/workflows/windows_luajit.yml | 1 + 2 files changed, 2 insertions(+) (limited to '.github') diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 8c1aa00a0..4a16620a8 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -64,6 +64,7 @@ jobs: - name: Artifact run: | cd core + xrepo update-repo xmake pack -vD -y --formats=nsis,zip --autobuild=n -o ../artifacts/${{env.RELEASE_NAME}} --basename=xmake (Get-FileHash ../artifacts/${{env.RELEASE_NAME}}/xmake.zip -Algorithm SHA256).Hash.ToLower() + " *xmake.zip`n" | Out-File ./shafile -Encoding ASCII -NoNewLine -Append Copy-Item shafile ../artifacts/${{env.RELEASE_NAME}} diff --git a/.github/workflows/windows_luajit.yml b/.github/workflows/windows_luajit.yml index 36862a0ae..9386acbff 100644 --- a/.github/workflows/windows_luajit.yml +++ b/.github/workflows/windows_luajit.yml @@ -53,6 +53,7 @@ jobs: - name: Artifact run: | cd core + xrepo update-repo xmake pack -vD -y --formats=nsis,zip --autobuild=n -o ../artifacts/${{env.RELEASE_NAME}} --basename=xmake (Get-FileHash ../artifacts/${{env.RELEASE_NAME}}/xmake.zip -Algorithm SHA256).Hash.ToLower() + " *xmake.zip`n" | Out-File ./shafile -Encoding ASCII -NoNewLine -Append Copy-Item shafile ../artifacts/${{env.RELEASE_NAME}} -- cgit v1.3.1 From 839d576f6717f88acdd0b50b6b72e19bc9ed64ee Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 19 Nov 2023 22:20:55 +0800 Subject: test --- .github/workflows/windows.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.github') diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 4a16620a8..fd80d8083 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -63,6 +63,7 @@ jobs: - name: Artifact run: | + $Env:XMAKE_PROGRAM_DIR = $(Resolve-Path ./xmake) cd core xrepo update-repo xmake pack -vD -y --formats=nsis,zip --autobuild=n -o ../artifacts/${{env.RELEASE_NAME}} --basename=xmake -- cgit v1.3.1 From 521b6b1e73dd72aaff2f53fec359eb1cda6d3d9e Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 19 Nov 2023 22:54:25 +0800 Subject: revert ci --- .github/workflows/windows.yml | 1 - 1 file changed, 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index fd80d8083..4a16620a8 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -63,7 +63,6 @@ jobs: - name: Artifact run: | - $Env:XMAKE_PROGRAM_DIR = $(Resolve-Path ./xmake) cd core xrepo update-repo xmake pack -vD -y --formats=nsis,zip --autobuild=n -o ../artifacts/${{env.RELEASE_NAME}} --basename=xmake -- cgit v1.3.1