forked from discord/lilliput
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
9 changed files
with
125 additions
and
12 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,39 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
build: | ||
name: Build | ||
strategy: | ||
matrix: | ||
runs-on: | ||
- macos-14 | ||
- ubuntu-22.04 | ||
fail-fast: false | ||
runs-on: ${{ matrix.runs-on }} | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.22" | ||
|
||
- name: Build | ||
run: go build | ||
|
||
- name: Test | ||
run: go test | ||
|
||
- name: Examples | ||
run: | | ||
cd examples | ||
go build |
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,48 @@ | ||
name: Build dependencies | ||
|
||
on: | ||
push: | ||
#branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
linux: | ||
name: Linux | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install build tools | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install nasm | ||
- name: Build deps | ||
run: | | ||
export MAKEFLAGS="-j$(nproc)" | ||
./deps/build-deps-linux.sh | ||
- run: git diff | ||
|
||
macos: | ||
name: macOS | ||
runs-on: macos-14 | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install build tools | ||
run: | | ||
brew install autoconf | ||
brew install automake | ||
brew install libtool | ||
- name: Build deps | ||
run: | | ||
export MAKEFLAGS="-j$(nproc)" | ||
./deps/build-deps-osx.sh | ||
- run: git diff |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/cmake/OpenCVCompilerOptions.cmake b/cmake/OpenCVCompilerOptions.cmake | ||
index 5bb0479..3d07b1c 100644 | ||
--- a/cmake/OpenCVCompilerOptions.cmake | ||
+++ b/cmake/OpenCVCompilerOptions.cmake | ||
@@ -18,8 +18,6 @@ if(ENABLE_CCACHE AND NOT CMAKE_COMPILER_IS_CCACHE) | ||
message(STATUS "Unable to compile program with enabled ccache, reverting...") | ||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${__OLD_RULE_LAUNCH_COMPILE}") | ||
endif() | ||
- else() | ||
- message(STATUS "Looking for ccache - not found") | ||
endif() | ||
endif() | ||
endif() |
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,6 @@ | ||
module example | ||
|
||
go 1.22.1 | ||
|
||
require github.com/discord/lilliput v0.0.0-20240506135726-42cabbbb14ff | ||
replace github.com/discord/lilliput => ".." |
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,2 @@ | ||
github.com/discord/lilliput v0.0.0-20240506135726-42cabbbb14ff h1:wzvd6e+K3FhhbOgXtxLgAXZf4yQyb6gMeYEXP2TgJTo= | ||
github.com/discord/lilliput v0.0.0-20240506135726-42cabbbb14ff/go.mod h1:0euuUBAD72MAYRm2ElLaG1h0nBR+CgpfnKc/U6y/uE8= |
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