Skip to content

Commit

Permalink
Windows from src
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Stachyra committed Oct 26, 2020
1 parent 366b2f1 commit 34361b9
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/windows_src.yml
@@ -0,0 +1,79 @@
name: WindowsSrc
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
tags: [ "*" ]
jobs:
make:
strategy:
matrix:
include:
- os: windows-2019
vs: 2019
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: ilammy/setup-nasm@v1
- uses: actions/checkout@v2

- name: "Install libraries"
run: |
choco install --no-progress squashfs
choco install wget
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.1

- name: "Install dependencies"
run: bundle install

- name: "Set up Perl"
run: |
choco install strawberryperl
echo "##[add-path]C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin"
- name: "Inspect Windows Environment"
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\${{ matrix.vs }}\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
echo on
wmic OS get OSArchitecture
echo %PROCESSOR_ARCHITECTURE%
set
systeminfo
where perl
perl -V
where nmake
where mksquashfs
nmake -v
mksquashfs -version
where ruby
ruby -v
where bundle
bundle -v
shell: cmd

- name: Get ruby-packer
run: |
cd ..
git clone https://github.com/pmq20/ruby-packer.git
cd ruby-packer
git checkout windows-x64
bundle install
set PATH=D:/a/ikar/ruby-packer/bin;%PATH%
- name: Build executable
run: |
cd ..\ikar
mkdir bin
dir
rubyc app.rb -o bin\ikar.exe
- name: 📎 Upload Artifact
uses: actions/upload-artifact@v1
with:
name: ${{ matrix.os }}-exe
path: bin

0 comments on commit 34361b9

Please sign in to comment.