summaryrefslogtreecommitdiffstats
path: root/.github/disabled-workflows/build-windows.yml
diff options
context:
space:
mode:
authoralanminko <37236958+alanminko@users.noreply.github.com>2022-01-22 13:20:29 -0800
committerGitHub <noreply@github.com>2022-01-22 13:20:29 -0800
commitdf1f7198e05137e06f4f3eedb480dbf36085018f (patch)
tree033498284c82ff1411393d688758233ba9172761 /.github/disabled-workflows/build-windows.yml
parent5b8fa41ba966271f97f99860b21eee83bf51e61a (diff)
parentfd975af1595dbf8f8a703591dac7b5f0059925db (diff)
downloadabc-df1f7198e05137e06f4f3eedb480dbf36085018f.tar.gz
abc-df1f7198e05137e06f4f3eedb480dbf36085018f.tar.bz2
abc-df1f7198e05137e06f4f3eedb480dbf36085018f.zip
Merge pull request #150 from sterin/master
Move CI to GitHub Actions.
Diffstat (limited to '.github/disabled-workflows/build-windows.yml')
-rw-r--r--.github/disabled-workflows/build-windows.yml48
1 files changed, 48 insertions, 0 deletions
diff --git a/.github/disabled-workflows/build-windows.yml b/.github/disabled-workflows/build-windows.yml
new file mode 100644
index 00000000..6312780d
--- /dev/null
+++ b/.github/disabled-workflows/build-windows.yml
@@ -0,0 +1,48 @@
+on: [push]
+
+jobs:
+
+ build-windows:
+
+ runs-on: windows-latest
+
+ steps:
+
+ - name: Git Checkout
+ uses: actions/checkout@v2
+ with:
+ submodules: recursive
+
+ - name: Process project files to compile on Github Actions
+ run: |
+ sed -i 's#ABC_USE_PTHREADS\"#ABC_DONT_USE_PTHREADS\" /D \"_ALLOW_KEYWORD_MACROS=1\"#g' *.dsp
+ awk 'BEGIN { del=0; } /# Begin Group "uap"/ { del=1; } /# End Group/ { if( del > 0 ) {del=0; next;} } del==0 {print;} ' abclib.dsp > tmp.dsp
+ copy tmp.dsp abclib.dsp
+ del tmp.dsp
+ unix2dos *.dsp
+
+ - name: Prepare MSVC
+ uses: bus1/cabuild/action/msdevshell@v1
+ with:
+ architecture: x86
+
+ - name: Upgrade project files to latest Visual Studio, ignoring upgrade errors, and build
+ run: |
+ devenv abcspace.dsw /upgrade ; if (-not $? ) { cat UpgradeLog.htm }
+ msbuild abcspace.sln /m /nologo /p:Configuration=Release /p:PlatformTarget=x86
+
+ - name: Test Executable
+ run: |
+ _TEST\abc.exe -c "r i10.aig; b; ps; b; rw -l; rw -lz; b; rw -lz; b; ps; cec"
+
+ - name: Stage Executable
+ run: |
+ mkdir staging
+ copy _TEST/abc.exe staging/
+ copy UpgradeLog.htm staging/
+
+ - name: Upload pacakge artifact
+ uses: actions/upload-artifact@v1
+ with:
+ name: package
+ path: staging/