summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorruki <[email protected]>2021-03-02 22:45:30 +0800
committerruki <[email protected]>2021-03-02 22:45:30 +0800
commit569416446b0cc78535d93614197568fbaffcd497 (patch)
treee97c25606ed83cbec58e3241489037799d329836 /.github
parent2654dce9ac9d8cfbe30445bcdbe843d912dd16b9 (diff)
improve tinyc
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/windows.yml30
1 files changed, 0 insertions, 30 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 290be340e..fca466899 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -88,21 +88,6 @@ jobs:
./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
- # build installer for tinyc
- if ("${{ matrix.arch }}" -eq "x64"){
- Invoke-WebRequest "http://download.savannah.gnu.org/releases/tinycc/tcc-0.9.27-win64-bin.zip" -UseBasicParsing -OutFile .\tcc.zip
- } else {
- Invoke-WebRequest "http://download.savannah.gnu.org/releases/tinycc/tcc-0.9.27-win32-bin.zip" -UseBasicParsing -OutFile .\tcc.zip
- }
- Expand-Archive ./tcc.zip -DestinationPath ./tcc
- Copy-Item ./tcc/tcc ./winenv/tcc -Recurse
- Invoke-WebRequest "http://download.savannah.gnu.org/releases/tinycc/winapi-full-for-0.9.27.zip" -UseBasicParsing -OutFile .\winapi.zip
- Expand-Archive ./winapi.zip -DestinationPath ./winapi
- Copy-Item ./winapi/winapi-full-for-0.9.27 ./winenv/tcc/winapi -Recurse
- ./nsis/makensis.exe /DMAJOR=$($version.ProductMajorPart) /DMINOR=$($version.ProductMinorPart) /DALTER=$($version.ProductBuildPart) /DBUILD=$($($version.ProductVersion -split '\+')[1]) /D${{ matrix.arch }} .\scripts\installer.nsi
- Copy-Item scripts/xmake.exe ./artifacts/${{env.RELEASE_NAME}}/xmake-tinyc.exe
- Remove-Item ./winenv/tcc -Recurse
- Remove-Item ./scripts/xmake.exe
# archive
Copy-Item ./*.md ./xmake
Copy-Item ./winenv ./xmake -Recurse
@@ -129,10 +114,6 @@ jobs:
path: artifacts/${{env.RELEASE_NAME}}/xmake.exe
- uses: actions/upload-artifact@v2
with:
- name: xmake-tinyc-latest.${{env.RELEASE_NAME}}.exe
- path: artifacts/${{env.RELEASE_NAME}}/xmake-tinyc.exe
- - uses: actions/upload-artifact@v2
- with:
name: xmake-latest.${{ env.RELEASE_NAME }}.zip
path: artifacts/${{env.RELEASE_NAME}}/archive.zip
- uses: actions/upload-artifact@v2
@@ -177,17 +158,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
- asset_path: artifacts/${{env.RELEASE_NAME}}/xmake-tinyc.exe
- asset_name: xmake-tinyc-${{ steps.tagName.outputs.tag }}.${{ env.RELEASE_NAME }}.exe
- asset_content_type: application/zip
-
- - name: publish
- if: github.event.action == 'published'
- uses: actions/[email protected]
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- upload_url: ${{ github.event.release.upload_url }}
asset_path: artifacts/${{env.RELEASE_NAME}}/archive.zip
asset_name: xmake-${{ steps.tagName.outputs.tag }}.${{ env.RELEASE_NAME }}.zip
asset_content_type: application/zip