-
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.
Remove Docker and upload Python build scripts for libcurl, mbedtls an…
…d freeimage
- Loading branch information
1 parent
1b164e8
commit 70abbbe
Showing
26 changed files
with
511 additions
and
828 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,41 @@ | ||
name: Build Package | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- uses: seanmiddleditch/gha-setup-ninja@master | ||
|
||
- uses: ilammy/msvc-dev-cmd@v1 | ||
with: | ||
arch: ${{matrix.cfg.ARCHITECTURE}} | ||
|
||
- uses: shogo82148/actions-setup-perl@v1 | ||
with: | ||
perl-version: '5.32' | ||
|
||
- name: Install Python deps | ||
shell: bash | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install -r requirements.txt | ||
[ -f packages/$PACKAGE/requirements.txt ] && python3 -m pip install -r packages/$PACKAGE/requirements.txt || true | ||
- name: Invoke Python build script | ||
shell: bash | ||
run: | | ||
FULL_PACKAGE_NAME=${{matrix.cfg.FULL_PACKAGE_NAME}} \ | ||
CC_COMPILER=${{matrix.cfg.CC_COMPILER}} \ | ||
CC_COMPILER_PACKAGE=${{matrix.cfg.CC_COMPILER_PACKAGE}} \ | ||
CXX_COMPILER=${{matrix.cfg.CXX_COMPILER}} \ | ||
CXX_COMPILER_PACKAGE=${{matrix.cfg.CXX_COMPILER_PACKAGE}} \ | ||
TOOLCHAIN_FILE=${{matrix.cfg.TOOLCHAIN_FILE}} \ | ||
python3 build.py $PACKAGE | ||
- name: Upload files to a GitHub release | ||
uses: svenstaro/upload-release-action@2.6.1 | ||
with: | ||
file: out/**.tar.gz | ||
file_glob: true | ||
tag: latest | ||
overwrite: true |
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,67 @@ | ||
name: Build freeimage | ||
|
||
on: | ||
push: | ||
paths: | ||
- .github/workflows/build-freeimage.yml | ||
- packages/freeimage/** | ||
- build.py | ||
- scripts/tools.py | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.cfg.os }} | ||
|
||
env: | ||
PACKAGE: freeimage | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
cfg: | ||
- { os: ubuntu-20.04, | ||
CC_COMPILER_PACKAGE: gcc-9, | ||
CXX_COMPILER_PACKAGE: g++-9, | ||
CC_COMPILER: gcc-9, | ||
CXX_COMPILER: g++-9, | ||
TOOLCHAIN_FILE: "", | ||
ARCHITECTURE: amd64 | ||
} | ||
- { os: windows-2022, | ||
CC_COMPILER_PACKAGE: msvc, | ||
CXX_COMPILER_PACKAGE: msvc, | ||
CC_COMPILER: msvc, | ||
CXX_COMPILER: msvc, | ||
TOOLCHAIN_FILE: "", | ||
ARCHITECTURE: amd64 | ||
} | ||
# - { os: windows, architecture: x64, compiler: mingw } | ||
# - { os: windows, architecture: x64, compiler: msys2 } | ||
# - { os: windows, architecture: x64, compiler: clang } | ||
# - { os: linux, architecture: x64, compiler: gcc } | ||
# - { os: linux, architecture: x64, compiler: clang } | ||
# - { os: linux, architecture: x64, compiler: mingw } | ||
# - { os: linux, architecture: arm64, compiler: gcc } | ||
# - { os: linux, architecture: arm64, compiler: clang } | ||
# - { os: linux, architecture: arm64, compiler: mingw } | ||
# - { os: android, architecture: arm64, compiler: gcc } | ||
# - { os: android, architecture: arm64, compiler : clang } | ||
# - { os: emscripten, architecture: emscripten, compiler: emscripten } | ||
# - { os: macos, architecture: x64, compiler: gcc } | ||
# - { os: macos, architecture: x64, compiler: clang } | ||
# - { os: macos, architecture: arm64, compiler: gcc } | ||
# - { os: macos, architecture: arm64, compiler: clang } | ||
# - { os: tvos, architecture: x64, compiler: gcc } | ||
# - { os: tvos, architecture: x64, compiler: clang } | ||
# - { os: tvos, architecture: arm64, compiler: gcc } | ||
# - { os: tvos, architecture: arm64, compiler: clang } | ||
# - { os: ios, architecture: arm64, compiler: gcc } | ||
# - { os: ios, architecture: arm64, compiler: clang } | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build package | ||
uses: ./.github/actions/build-package | ||
|
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,67 @@ | ||
name: Build libcurl | ||
|
||
on: | ||
push: | ||
paths: | ||
- .github/workflows/build-libcurl.yml | ||
- packages/libcurl/** | ||
- build.py | ||
- scripts/tools.py | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.cfg.os }} | ||
|
||
env: | ||
PACKAGE: libcurl | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
cfg: | ||
- { os: ubuntu-20.04, | ||
CC_COMPILER_PACKAGE: gcc-9, | ||
CXX_COMPILER_PACKAGE: g++-9, | ||
CC_COMPILER: gcc-9, | ||
CXX_COMPILER: g++-9, | ||
TOOLCHAIN_FILE: "", | ||
ARCHITECTURE: amd64 | ||
} | ||
- { os: windows-2022, | ||
CC_COMPILER_PACKAGE: msvc, | ||
CXX_COMPILER_PACKAGE: msvc, | ||
CC_COMPILER: msvc, | ||
CXX_COMPILER: msvc, | ||
TOOLCHAIN_FILE: "", | ||
ARCHITECTURE: amd64 | ||
} | ||
# - { os: windows, architecture: x64, compiler: mingw } | ||
# - { os: windows, architecture: x64, compiler: msys2 } | ||
# - { os: windows, architecture: x64, compiler: clang } | ||
# - { os: linux, architecture: x64, compiler: gcc } | ||
# - { os: linux, architecture: x64, compiler: clang } | ||
# - { os: linux, architecture: x64, compiler: mingw } | ||
# - { os: linux, architecture: arm64, compiler: gcc } | ||
# - { os: linux, architecture: arm64, compiler: clang } | ||
# - { os: linux, architecture: arm64, compiler: mingw } | ||
# - { os: android, architecture: arm64, compiler: gcc } | ||
# - { os: android, architecture: arm64, compiler : clang } | ||
# - { os: emscripten, architecture: emscripten, compiler: emscripten } | ||
# - { os: macos, architecture: x64, compiler: gcc } | ||
# - { os: macos, architecture: x64, compiler: clang } | ||
# - { os: macos, architecture: arm64, compiler: gcc } | ||
# - { os: macos, architecture: arm64, compiler: clang } | ||
# - { os: tvos, architecture: x64, compiler: gcc } | ||
# - { os: tvos, architecture: x64, compiler: clang } | ||
# - { os: tvos, architecture: arm64, compiler: gcc } | ||
# - { os: tvos, architecture: arm64, compiler: clang } | ||
# - { os: ios, architecture: arm64, compiler: gcc } | ||
# - { os: ios, architecture: arm64, compiler: clang } | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build package | ||
uses: ./.github/actions/build-package | ||
|
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,67 @@ | ||
name: Build mbedtls | ||
|
||
on: | ||
push: | ||
paths: | ||
- .github/workflows/build-mbedtls.yml | ||
- packages/mbedtls/** | ||
- build.py | ||
- scripts/tools.py | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.cfg.os }} | ||
|
||
env: | ||
PACKAGE: mbedtls | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
cfg: | ||
- { os: ubuntu-20.04, | ||
CC_COMPILER_PACKAGE: gcc-9, | ||
CXX_COMPILER_PACKAGE: g++-9, | ||
CC_COMPILER: gcc-9, | ||
CXX_COMPILER: g++-9, | ||
TOOLCHAIN_FILE: "", | ||
ARCHITECTURE: amd64 | ||
} | ||
- { os: windows-2022, | ||
CC_COMPILER_PACKAGE: msvc, | ||
CXX_COMPILER_PACKAGE: msvc, | ||
CC_COMPILER: msvc, | ||
CXX_COMPILER: msvc, | ||
TOOLCHAIN_FILE: "", | ||
ARCHITECTURE: amd64 | ||
} | ||
# - { os: windows, architecture: x64, compiler: mingw } | ||
# - { os: windows, architecture: x64, compiler: msys2 } | ||
# - { os: windows, architecture: x64, compiler: clang } | ||
# - { os: linux, architecture: x64, compiler: gcc } | ||
# - { os: linux, architecture: x64, compiler: clang } | ||
# - { os: linux, architecture: x64, compiler: mingw } | ||
# - { os: linux, architecture: arm64, compiler: gcc } | ||
# - { os: linux, architecture: arm64, compiler: clang } | ||
# - { os: linux, architecture: arm64, compiler: mingw } | ||
# - { os: android, architecture: arm64, compiler: gcc } | ||
# - { os: android, architecture: arm64, compiler : clang } | ||
# - { os: emscripten, architecture: emscripten, compiler: emscripten } | ||
# - { os: macos, architecture: x64, compiler: gcc } | ||
# - { os: macos, architecture: x64, compiler: clang } | ||
# - { os: macos, architecture: arm64, compiler: gcc } | ||
# - { os: macos, architecture: arm64, compiler: clang } | ||
# - { os: tvos, architecture: x64, compiler: gcc } | ||
# - { os: tvos, architecture: x64, compiler: clang } | ||
# - { os: tvos, architecture: arm64, compiler: gcc } | ||
# - { os: tvos, architecture: arm64, compiler: clang } | ||
# - { os: ios, architecture: arm64, compiler: gcc } | ||
# - { os: ios, architecture: arm64, compiler: clang } | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build package | ||
uses: ./.github/actions/build-package | ||
|
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 @@ | ||
import sys | ||
import importlib | ||
|
||
# Usage: python build.py <package_name> | ||
|
||
def main(): | ||
if len(sys.argv) != 2: | ||
print('Usage: python build.py <package_name>') | ||
sys.exit(1) | ||
|
||
package_name = sys.argv[1] | ||
builder = getattr(importlib.import_module(f'packages.{package_name}.build'), 'Builder')() | ||
|
||
builder.install_build_dependencies() | ||
|
||
if hasattr(builder, 'source'): | ||
builder.source() | ||
|
||
if hasattr(builder, 'patch_sources'): | ||
builder.patch_sources() | ||
|
||
if hasattr(builder, 'depends'): | ||
builder.depends() | ||
|
||
if hasattr(builder, 'build'): | ||
builder.build() | ||
|
||
if hasattr(builder, 'package'): | ||
builder.package() | ||
|
||
if __name__ == '__main__': | ||
main() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.