-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* github build
- Loading branch information
Showing
7 changed files
with
128 additions
and
27 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 |
---|---|---|
@@ -1,20 +1,41 @@ | ||
name: Greet Everyone | ||
name: Abanu Testing | ||
# This workflow is triggered on pushes to the repository. | ||
on: [push] | ||
|
||
jobs: | ||
build: | ||
# Job name is Greeting | ||
name: Greeting | ||
# This job runs on Linux | ||
runs-on: ubuntu-latest | ||
build-unix: | ||
name: Linux Test | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
# This step uses GitHub's hello-world-javascript-action: https://github.com/actions/hello-world-javascript-action | ||
- name: Hello world | ||
uses: actions/hello-world-javascript-action@v1 | ||
- uses: actions/checkout@v1 | ||
- name: Update Package respository | ||
run: sudo apt-get -y -o Acquire::Check-Valid-Until=false update | ||
- name: Install Packages | ||
run: sudo apt-get install -y --no-install-recommends git wget nasm qemu-system-x86 mtools xorriso grub-common grub-pc-bin grub-efi-amd64-bin grub-efi-ia32-bin | ||
- name: Set Permissions | ||
run: chmod +x $GITHUB_WORKSPACE/abctl | ||
- name: Configure | ||
run: $GITHUB_WORKSPACE/abctl configure cloud-test | ||
- name: Build | ||
run: $GITHUB_WORKSPACE/abctl build all | ||
- name: Test | ||
run: $GITHUB_WORKSPACE/abctl test cloud | ||
build-mswin: | ||
name: Windows Test | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
with: | ||
who-to-greet: 'Mona the Octocat' | ||
id: hello | ||
# This step prints an output (time) from the previous step's action. | ||
- name: Echo the greeting's time | ||
run: echo 'The time was ${{ steps.hello.outputs.time }}.' | ||
submodules: recursive | ||
#- uses: crazy-max/ghaction-chocolatey@v1 | ||
- name: Configure | ||
# TODO: change dir in bat file | ||
#run: "external/MOSA-Project/Source/Compile.bat" | ||
run: "./Compile.bat" | ||
working-directory: external/MOSA-Project/Source | ||
- name: Build Assemblies | ||
run: "./build.bat" | ||
- name: Build Binaries | ||
run: bin/Abanu.Tools.Build.exe build --native --bin=all --image | ||
- name: Test | ||
run: bin/Abanu.Tools.Build.exe run --emulator=qemu --boot=direct --test |
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
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,32 @@ | ||
if exist %SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe set MSBUILD=%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe | ||
if exist %SYSTEMROOT%\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe set MSBUILD=%SYSTEMROOT%\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe | ||
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild.exe" set MSBUILD="%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild.exe" | ||
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\amd64\msbuild.exe" set MSBUILD="%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\amd64\msbuild.exe" | ||
|
||
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe" set MSBUILD="%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe" | ||
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\msbuild.exe" set MSBUILD="%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\msbuild.exe" | ||
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" set MSBUILD="%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" | ||
if exist "D:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" set MSBUILD="D:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" | ||
|
||
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\amd64\msbuild.exe" set MSBUILD="%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\amd64\msbuild.exe" | ||
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\amd64\msbuild.exe" set MSBUILD="%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\amd64\msbuild.exe" | ||
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\amd64\msbuild.exe" set MSBUILD="%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\amd64\msbuild.exe" | ||
if exist "D:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\amd64\msbuild.exe" set MSBUILD="D:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\amd64\msbuild.exe" | ||
|
||
IF EXIST external\MOSA-Project\bin\Mosa.Plug.Korlib.dll GOTO BUILD | ||
|
||
REM TODO: Change dir in bat file | ||
cd external\MOSA-Project\Source | ||
call Compile.bat | ||
cd ..\..\.. | ||
|
||
:BUILD | ||
|
||
mkdir bin | ||
copy external\MOSA-Project\bin\Mosa.Plug.Korlib.dll bin | ||
copy external\MOSA-Project\bin\Mosa.Plug.Korlib.x86.dll bin | ||
copy external\MOSA-Project\bin\Mosa.Plug.Korlib.x64.dll bin | ||
copy external\MOSA-Project\bin\dnlib.* bin | ||
copy "external\MOSA-Project\bin\Priority Queue.dll" bin | ||
|
||
%MSBUILD% src/Abanu.sln /p:Configuration=debug /verbosity:minimal |
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
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
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
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