mirror of https://github.com/tqfx/liba.git
rename demo to example
This commit is contained in:
parent
6a27fcd260
commit
1f9b93e763
|
@ -14,13 +14,13 @@ jobs:
|
|||
- name: Run setup
|
||||
run: |
|
||||
Set-PSDebug -Trace 1
|
||||
python -m venv demo/_
|
||||
demo/_/Scripts/Activate.ps1
|
||||
python -m venv example/_
|
||||
example/_/Scripts/Activate.ps1
|
||||
python -m pip install -U conan
|
||||
conan profile detect --force
|
||||
conan export .
|
||||
- name: Run conan static
|
||||
working-directory: demo
|
||||
working-directory: example
|
||||
run: |
|
||||
_/Scripts/Activate.ps1
|
||||
Set-PSDebug -Trace 1
|
||||
|
@ -28,7 +28,7 @@ jobs:
|
|||
cmake --preset conan-default
|
||||
cmake --build --preset conan-release -v -- -nologo
|
||||
- name: Run conan shared
|
||||
working-directory: demo
|
||||
working-directory: example
|
||||
run: |
|
||||
_/Scripts/Activate.ps1
|
||||
Set-PSDebug -Trace 1
|
||||
|
@ -55,8 +55,8 @@ jobs:
|
|||
CXX: ${{ matrix.cxx }}
|
||||
run: |
|
||||
set -x
|
||||
python -m venv demo/_
|
||||
. demo/_/bin/activate
|
||||
python -m venv example/_
|
||||
. example/_/bin/activate
|
||||
python -m pip install -U conan
|
||||
conan profile detect --force
|
||||
conan export .
|
||||
|
@ -64,7 +64,7 @@ jobs:
|
|||
env:
|
||||
CC: ${{ matrix.cc }}
|
||||
CXX: ${{ matrix.cxx }}
|
||||
working-directory: demo
|
||||
working-directory: example
|
||||
run: |
|
||||
. _/bin/activate
|
||||
set -x
|
||||
|
@ -75,7 +75,7 @@ jobs:
|
|||
env:
|
||||
CC: ${{ matrix.cc }}
|
||||
CXX: ${{ matrix.cxx }}
|
||||
working-directory: demo
|
||||
working-directory: example
|
||||
run: |
|
||||
. _/bin/activate
|
||||
set -x
|
||||
|
@ -102,8 +102,8 @@ jobs:
|
|||
CXX: ${{ matrix.cxx }}
|
||||
run: |
|
||||
set -x
|
||||
python -m venv demo/_
|
||||
. demo/_/bin/activate
|
||||
python -m venv example/_
|
||||
. example/_/bin/activate
|
||||
python -m pip install -U conan
|
||||
conan profile detect --force
|
||||
conan export .
|
||||
|
@ -111,7 +111,7 @@ jobs:
|
|||
env:
|
||||
CC: ${{ matrix.cc }}
|
||||
CXX: ${{ matrix.cxx }}
|
||||
working-directory: demo
|
||||
working-directory: example
|
||||
run: |
|
||||
. _/bin/activate
|
||||
set -x
|
||||
|
@ -122,7 +122,7 @@ jobs:
|
|||
env:
|
||||
CC: ${{ matrix.cc }}
|
||||
CXX: ${{ matrix.cxx }}
|
||||
working-directory: demo
|
||||
working-directory: example
|
||||
run: |
|
||||
. _/bin/activate
|
||||
set -x
|
||||
|
|
|
@ -43,5 +43,5 @@ jobs:
|
|||
cargo test --all-features
|
||||
cargo test --all-features --release
|
||||
cmake --build build --config RelWithDebInfo --target install
|
||||
cmake -S demo -B demo/build
|
||||
cmake --build demo/build -v
|
||||
cmake -S example -B example/build
|
||||
cmake --build example/build -v
|
||||
|
|
|
@ -90,7 +90,7 @@ jobs:
|
|||
run: |
|
||||
set -x
|
||||
cmake --build build --config RelWithDebInfo --target test
|
||||
- name: Run demo
|
||||
- name: Run example
|
||||
env:
|
||||
CC: ${{ matrix.cc }}
|
||||
CXX: ${{ matrix.cxx }}
|
||||
|
@ -98,8 +98,8 @@ jobs:
|
|||
run: |
|
||||
set -x
|
||||
cmake --build build --config RelWithDebInfo --target install
|
||||
cmake -S demo -B demo/build
|
||||
cmake --build demo/build -v
|
||||
cmake -S example -B example/build
|
||||
cmake --build example/build -v
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: microsoft/vcpkg
|
||||
|
|
|
@ -90,7 +90,7 @@ jobs:
|
|||
run: |
|
||||
set -x
|
||||
cmake --build build --config RelWithDebInfo --target test
|
||||
- name: Run demo
|
||||
- name: Run example
|
||||
env:
|
||||
CC: ${{ matrix.cc }}
|
||||
CXX: ${{ matrix.cxx }}
|
||||
|
@ -98,8 +98,8 @@ jobs:
|
|||
run: |
|
||||
set -x
|
||||
cmake --build build --config RelWithDebInfo --target install
|
||||
cmake -S demo -B demo/build
|
||||
cmake --build demo/build -v
|
||||
cmake -S example -B example/build
|
||||
cmake --build example/build -v
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: microsoft/vcpkg
|
||||
|
|
|
@ -35,8 +35,8 @@ jobs:
|
|||
-DLIBA_WITH_QUICKJS=1
|
||||
cmake --build build --target package
|
||||
sudo cmake --build build --target install
|
||||
cmake -S demo -B demo/build
|
||||
cmake --build demo/build -v
|
||||
cmake -S example -B example/build
|
||||
cmake --build example/build -v
|
||||
LLVM-MinGW:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
@ -76,5 +76,5 @@ jobs:
|
|||
-DLIBA_WITH_QUICKJS=1
|
||||
cmake --build build --target package
|
||||
cmake --build build --target install
|
||||
cmake -S demo -B demo/build -DCMAKE_SYSTEM_PROCESSOR=${{ matrix.arch }}
|
||||
cmake --build demo/build -v
|
||||
cmake -S example -B example/build -DCMAKE_SYSTEM_PROCESSOR=${{ matrix.arch }}
|
||||
cmake --build example/build -v
|
||||
|
|
|
@ -63,14 +63,14 @@ jobs:
|
|||
run: |
|
||||
Set-PSDebug -Trace 1
|
||||
cmake --build build --config RelWithDebInfo --target run_tests -- -noLogo
|
||||
- name: Run demo
|
||||
- name: Run example
|
||||
env:
|
||||
CMAKE_PREFIX_PATH: ${{ github.workspace }}/_
|
||||
run: |
|
||||
Set-PSDebug -Trace 1
|
||||
cmake --build build --config RelWithDebInfo --target install -- -noLogo
|
||||
cmake -S demo -B demo/build -A ${{ matrix.arch }}
|
||||
cmake --build demo/build -v
|
||||
cmake -S example -B example/build -A ${{ matrix.arch }}
|
||||
cmake --build example/build -v
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: microsoft/vcpkg
|
||||
|
|
|
@ -72,15 +72,15 @@ jobs:
|
|||
run: |
|
||||
set -x
|
||||
cmake --build build --target test
|
||||
- name: Run demo
|
||||
- name: Run example
|
||||
shell: msys2 {0}
|
||||
env:
|
||||
MSYSTEM: ${{ matrix.sys }}
|
||||
run: |
|
||||
set -x
|
||||
cmake --build build --config RelWithDebInfo --target install
|
||||
cmake -S demo -B demo/build -DCMAKE_PREFIX_PATH=$(pwd)/_
|
||||
cmake --build demo/build -v
|
||||
cmake -S example -B example/build -DCMAKE_PREFIX_PATH=$(pwd)/_
|
||||
cmake --build example/build -v
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: microsoft/vcpkg
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import liba.version;
|
||||
|
||||
public class demo {
|
||||
public class example {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(liba.VERSION + "+" + version.TWEAK);
|
||||
}
|
Loading…
Reference in New Issue