mirror of
https://github.com/Ed94/metadesk.git
synced 2026-08-06 15:48:47 +00:00
add github actions
This commit is contained in:
@@ -0,0 +1,43 @@
|
|||||||
|
|
||||||
|
name: builds
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-windows:
|
||||||
|
runs-on: windows-2019
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: build
|
||||||
|
shell: cmd
|
||||||
|
run: |
|
||||||
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64
|
||||||
|
"C:\Program Files\Git\bin\bash.exe" "bin/bld_init.sh"
|
||||||
|
"C:\Program Files\Git\bin\bash.exe" "bin/all_dev_checks.sh"
|
||||||
|
|
||||||
|
build-linux:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: build
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
./bin/bld_init.sh
|
||||||
|
sed -i.bak 's/cl/clang/' local/compiler.sh
|
||||||
|
sed -i.bak 's/lld-link/clang/' local/linker.sh
|
||||||
|
./bin/all_dev_checks.sh
|
||||||
|
|
||||||
|
build-macos:
|
||||||
|
runs-on: macos-11
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: build
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
./bin/bld_init.sh
|
||||||
|
sed -i.bak 's/cl/clang/' local/compiler.sh
|
||||||
|
sed -i.bak 's/lld-link/clang/' local/linker.sh
|
||||||
|
./bin/all_dev_checks.sh
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
###### Get Paths ##############################################################
|
###### Get Paths ##############################################################
|
||||||
og_path=$PWD
|
og_path=$PWD
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|||||||
+5
-5
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
###### Usage ##################################################################
|
###### Usage ##################################################################
|
||||||
# ./bld_core.sh <command> [arguments ...]
|
# ./bld_core.sh <command> [arguments ...]
|
||||||
#
|
#
|
||||||
@@ -548,8 +550,8 @@ if [ "$OSTYPE" == "win32" ] ||
|
|||||||
os="windows"
|
os="windows"
|
||||||
elif [ "$OSTYPE" == "linux-gnu" ]; then
|
elif [ "$OSTYPE" == "linux-gnu" ]; then
|
||||||
os="linux"
|
os="linux"
|
||||||
elif [ "$OSTYPE" == "darwin" ]; then
|
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
os="osx"
|
os="mac"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@@ -593,13 +595,11 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
###### Binary File Extension ##################################################
|
###### Binary File Extension ##################################################
|
||||||
dot_ext_exe=""
|
dot_ext_exe=".exe"
|
||||||
dot_ext_dll=""
|
dot_ext_dll=""
|
||||||
if [ "$os" == "windows" ]; then
|
if [ "$os" == "windows" ]; then
|
||||||
dot_ext_exe=".exe"
|
|
||||||
dot_ext_dll=".dll"
|
dot_ext_dll=".dll"
|
||||||
elif [ "$os" == "linux" ] || [ "$os" == "mac" ]; then
|
elif [ "$os" == "linux" ] || [ "$os" == "mac" ]; then
|
||||||
dot_ext_exe=""
|
|
||||||
dot_ext_dll=".so"
|
dot_ext_dll=".so"
|
||||||
else
|
else
|
||||||
echo "ERROR: binary extension not defined for OS: $os"
|
echo "ERROR: binary extension not defined for OS: $os"
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
###### Usage ##################################################################
|
###### Usage ##################################################################
|
||||||
# ./bld_init.sh
|
# ./bld_init.sh
|
||||||
# Clears out the local folder and populates it with default initial scripts.
|
# Clears out the local folder and populates it with default initial scripts.
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
###### Get Paths ##############################################################
|
###### Get Paths ##############################################################
|
||||||
og_path=$PWD
|
og_path=$PWD
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
###### Get Paths ##############################################################
|
###### Get Paths ##############################################################
|
||||||
og_path=$PWD
|
og_path=$PWD
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|||||||
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
+2
-2
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
###### Get Paths ##############################################################
|
###### Get Paths ##############################################################
|
||||||
og_path=$PWD
|
og_path=$PWD
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
@@ -12,8 +14,6 @@ echo ~~~ Running Expression Intro ~~~
|
|||||||
$build_path/expr_intro.exe $examps/expr/expr_intro.mdesk
|
$build_path/expr_intro.exe $examps/expr/expr_intro.mdesk
|
||||||
echo
|
echo
|
||||||
|
|
||||||
exit
|
|
||||||
|
|
||||||
# Setup a big list of files for a few of the examples
|
# Setup a big list of files for a few of the examples
|
||||||
big_list=()
|
big_list=()
|
||||||
big_list+=("$examps/intro/hello_world.mdesk")
|
big_list+=("$examps/intro/hello_world.mdesk")
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
###### Get Paths ##############################################################
|
###### Get Paths ##############################################################
|
||||||
og_path=$PWD
|
og_path=$PWD
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ int main(int argc, char **argv)
|
|||||||
#if 1
|
#if 1
|
||||||
char *argv_dummy[2] = {
|
char *argv_dummy[2] = {
|
||||||
0,
|
0,
|
||||||
"W:\\metadesk\\examples\\expr\\expr_c_like.mdesk",
|
"examples/expr/expr_c_like.mdesk",
|
||||||
};
|
};
|
||||||
argc = 2;
|
argc = 2;
|
||||||
argv = argv_dummy;
|
argv = argv_dummy;
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ int main(int argc, char **argv)
|
|||||||
#if 1
|
#if 1
|
||||||
char *argv_dummy[2] = {
|
char *argv_dummy[2] = {
|
||||||
0,
|
0,
|
||||||
"W:\\metadesk\\examples\\expr\\expr_intro.mdesk",
|
"examples/expr/expr_intro.mdesk",
|
||||||
};
|
};
|
||||||
argc = 2;
|
argc = 2;
|
||||||
argv = argv_dummy;
|
argv = argv_dummy;
|
||||||
|
|||||||
Reference in New Issue
Block a user