Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Piotr Stachyra
committed
Oct 26, 2020
1 parent
366b2f1
commit 34361b9
Showing
1 changed file
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |