2020-03-01 19:06:14 +00:00
|
|
|
version: 2.1
|
|
|
|
|
|
|
|
orbs:
|
|
|
|
win: circleci/windows@2.2.0
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
executor: win/default
|
2020-03-01 19:28:19 +00:00
|
|
|
environment:
|
|
|
|
version: '5.2.0'
|
|
|
|
binaryversion: '11'
|
2020-06-20 12:53:07 +00:00
|
|
|
build: '6'
|
2020-03-01 19:06:14 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-03-01 19:29:06 +00:00
|
|
|
- run: iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
2020-03-01 22:46:14 +00:00
|
|
|
- run: Install-Module -Name 7Zip4Powershell -Force -Scope CurrentUser
|
|
|
|
- run: choco install -y msys2
|
2020-03-01 23:16:01 +00:00
|
|
|
- run: |
|
2020-03-02 00:00:21 +00:00
|
|
|
$ProgressPreference = "SilentlyContinue"
|
2020-03-01 23:16:01 +00:00
|
|
|
Invoke-WebRequest -UseBasicParsing -Uri "https://code.call-cc.org/releases/$Env:version/chicken-$Env:version.tar.gz" -OutFile '.\chicken.tar.gz'
|
2020-03-02 00:05:12 +00:00
|
|
|
7z x chicken.tar.gz
|
|
|
|
7z x chicken.tar
|
2020-03-01 23:16:01 +00:00
|
|
|
Remove-Item -Force chicken.tar.gz
|
|
|
|
Remove-Item -Force chicken.tar
|
|
|
|
mv chicken-* chickenbuild
|
2020-06-20 11:54:23 +00:00
|
|
|
- run: C:\tools\msys64\usr\bin\env MSYSTEM=MINGW64 /bin/bash -l -c 'pacman -S --needed --noconfirm pactoys'
|
2020-09-27 13:42:24 +00:00
|
|
|
- run: C:\tools\msys64\usr\bin\env MSYSTEM=MINGW64 /bin/bash -l -c 'pacboy -Sy --needed --noconfirm binutils:x make:x gcc:x gettext:x readline:x patch:x'
|
|
|
|
- run: C:\tools\msys64\usr\bin\env MSYSTEM=MINGW64 /bin/bash -l -c 'patch -p1 chicken.h /c/Users/circleci/project/chicken_h_explicit_char.patch'
|
2020-06-20 12:01:08 +00:00
|
|
|
- run: C:\tools\msys64\usr\bin\env MSYSTEM=MINGW64 /bin/bash -l -c "export CFLAGS='-O2 -Wno-unused-variable -Wno-unused-but-set-variable'; mingw32-make PLATFORM=mingw-msys ARCH=x86-64 PREFIX=C:/tools/chicken -C /c/Users/circleci/project/chickenbuild"
|
2020-03-01 19:06:14 +00:00
|
|
|
- run: .\build.ps1
|
2020-03-01 22:57:48 +00:00
|
|
|
- run: choco apikey --key $Env:CHOCO_API_KEY --source https://push.chocolatey.org
|
2020-04-03 22:37:05 +00:00
|
|
|
- run: choco push chicken.$Env:version.$Env:build.nupkg --source https://push.chocolatey.org
|