switch to github actions
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7225 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
4c29550d04
commit
39b528a071
3 changed files with 67 additions and 37 deletions
66
.github/workflows/build.yml
vendored
Normal file
66
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,66 @@
|
|||
name: CI
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-18.04, macos-10.15, windows-2019]
|
||||
log: [yes, no]
|
||||
include:
|
||||
- nightly: nightly
|
||||
os: windows-2019
|
||||
log: no
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
- name: Brew Dependencies
|
||||
run: |
|
||||
brew install scons mingw-w64 zlib
|
||||
curl -sLo cppunit.rb "https://sourceforge.net/p/nsis/code/HEAD/tree/web-scripts/trunk/cppunit.rb?format=raw"
|
||||
brew install -s cppunit.rb
|
||||
if: startsWith(matrix.os, 'macos')
|
||||
- name: Apt Dependencies
|
||||
run: sudo DEBIAN_FRONTEND=noninteractive apt-get install -y scons g++-mingw-w64-i686 binutils-mingw-w64-i686 zlib1g-dev libcppunit-dev
|
||||
if: startsWith(matrix.os, 'ubuntu')
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: '3.8'
|
||||
if: startsWith(matrix.os, 'windows')
|
||||
- name: Choco Dependencies
|
||||
run: |
|
||||
curl -sLo cppunit-msvc-1.12.1.exe https://downloads.sourceforge.net/project/cppunit-msvc/cppunit-msvc-1.12.1.exe
|
||||
$arguments = "/S /D=$HOME\cppunit"
|
||||
Start-Process ./cppunit-msvc-1.12.1.exe $arguments -NoNewWindow -Wait
|
||||
pip install scons
|
||||
choco install html-help-workshop
|
||||
echo "${Env:ProgramFiles(x86)}\HTML Help Workshop" >> $Env:GITHUB_PATH
|
||||
if: startsWith(matrix.os, 'windows')
|
||||
- name: Zlib Dependency
|
||||
run: |
|
||||
curl -sLo $HOME/zlib.zip "https://downloads.sourceforge.net/project/libpng/zlib/1.2.8/zlib128-dll.zip?r=&ts=1403402496&use_mirror=hivelocity"
|
||||
mkdir $HOME/zlib
|
||||
unzip $HOME/zlib.zip -d $HOME/zlib
|
||||
- name: Build
|
||||
run: |
|
||||
scons ZLIB_W32=$HOME/zlib SKIPUTILS="NSIS Menu" NSIS_CONFIG_LOG=${{ matrix.log }} test dist-zip
|
||||
if: "!startsWith(matrix.os, 'windows')"
|
||||
- name: Build (Windows)
|
||||
run: |
|
||||
scons ZLIB_W32=$HOME/zlib SKIPUTILS="NSIS Menu" NSIS_CONFIG_LOG=${{ matrix.log }} APPEND_CPPPATH=$HOME/cppunit/include APPEND_LIBPATH=$HOME/cppunit/lib/release-win32 test dist
|
||||
if: startsWith(matrix.os, 'windows')
|
||||
- name: Config Errors
|
||||
if: ${{ failure() }}
|
||||
run: cat config.log
|
||||
- name: Deploy
|
||||
run: |
|
||||
echo https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID > build.log
|
||||
#Compress-Archive -Path build.log -DestinationPath nsis-*.zip -Update
|
||||
echo $Env:DEPLOY_KEY > $HOME/deploy_key
|
||||
ssh -oStrictHostKeyChecking=no -o "BatchMode yes" -i $HOME/deploy_key -T kichik,nsis@shell.sourceforge.net create
|
||||
cat nsis-*.zip | ssh -oStrictHostKeyChecking=no -o "BatchMode yes" -i $HOME/deploy_key kichik,nsis@shell.sourceforge.net /home/project-web/nsis/bin/nightly-deploy.sh
|
||||
env:
|
||||
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
|
||||
if: matrix.nightly == 'nightly' && github.ref == 'refs/heads/master'
|
Loading…
Add table
Add a link
Reference in a new issue