1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-03 08:51:22 +00:00

Add windows x86

This commit is contained in:
Luke Ceddia 2021-02-01 21:11:02 +11:00
parent 93645ed7e6
commit 3ed73b2cfe
No known key found for this signature in database
GPG key ID: 319344384A0759B0
2 changed files with 9 additions and 32 deletions

View file

@ -1,29 +1,9 @@
@ECHO OFF @ECHO OFF
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
cd .. cd ..
set BUCKET=qb64-dev-builds
set TIMEX=%TIME: =0% set TIMEX=%TIME: =0%
set archive=qb64_%DATE:~10,4%-%DATE:~4,2%-%DATE:~7,2%-%TIMEX:~0,2%-%TIMEX:~3,2%-%TIMEX:~6,2%_%GITHUB_SHA:~0,7%_win-%PLATFORM%.7z set archive=qb64_%DATE:~10,4%-%DATE:~4,2%-%DATE:~7,2%-%TIMEX:~0,2%-%TIMEX:~3,2%-%TIMEX:~6,2%_%GITHUB_SHA:~0,7%_win-%PLATFORM%.7z
7z a -xr@qb64\.ci\common-exclusion.list -xr@qb64\.ci\win-exclusion.list %archive% qb64 7z a -xr@qb64\.ci\common-exclusion.list -xr@qb64\.ci\win-exclusion.list %archive% qb64
FOR /L %%i IN (1,1,10) DO ( aws s3 cp %archive% s3://%BUCKET%/win-%PLATFORM%/
scp %archive% remote-server:autobuilds/development/
IF ERRORLEVEL 1 (
ECHO scp %archive% failed - attempt %%i/10
) ELSE (
GOTO :doversion
)
)
:doversion
set archive=versioninfo.txt
echo Dev build generated on %DATE:~10,4%-%DATE:~4,2%-%DATE:~7,2%, from git ^<a href="https://github.com/QB64Team/qb64/commits/development" target="_blank"^>%GITHUB_SHA:~0,7%^</a^> > %archive%
FOR /L %%i IN (1,1,10) DO (
scp %archive% remote-server:autobuilds/development/
IF ERRORLEVEL 1 (
ECHO scp %archive% failed - attempt %%i/10
) ELSE (
EXIT /B 0
)
)

View file

@ -58,7 +58,7 @@ jobs:
windows-x86-build: windows-x86-build:
runs-on: windows-latest runs-on: windows-latest
if: "contains(github.event.head_commit.message, 'ci-skip')" if: "!contains(github.event.head_commit.message, 'ci-skip')"
env: env:
PLATFORM: x86 PLATFORM: x86
steps: steps:
@ -67,17 +67,14 @@ jobs:
run: .ci/bootstrap.bat run: .ci/bootstrap.bat
- name: Compile - name: Compile
run: .ci/compile.bat run: .ci/compile.bat
- name: Set deployment SSH key - name: Setup aws
if: github.event_name == 'push' if: github.event_name == 'push'
uses: shimataro/ssh-key-action@v2.1.0 uses: aws-actions/configure-aws-credentials@v1
with: with:
key: ${{ secrets.SSH_KEY }} aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
known_hosts: ${{ secrets.KNOWN_HOSTS }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
config: | aws-region: us-east-2
Host remote-server - name: Publish to S3
HostName qb64.org
User m6rosupy1q2t
- name: Package and deploy
if: github.event_name == 'push' if: github.event_name == 'push'
run: .ci/deploy.bat run: .ci/deploy.bat