forked from shaka-project/shaka-packager
-
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.
feat!: Rewrite build system and third-party dependencies
This work was done over ~80 individual commits in the `cmake` branch. BEGIN_COMMIT_OVERRIDE feat!: Replace gyp build system with CMake Closes shaka-project#1047 feat!: Update all dependencies fix: Fix Python 3.10+ compatibility in scripts feat!: Drop Python 2 support in all scripts feat!: Replace glog with absl::log, tweak log output and flags feat: Add install target to build system feat: Respect the file mode for HttpFiles (shaka-project#1081) feat: Move all third-party deps into git submodules (shaka-project#1083) fix: Fix local files with UTF8 names (shaka-project#1246) fix: Fix build on FreeBSD (shaka-project#1287) fix: Fix clang build (shaka-project#1288) fix: Fix various build issues on macOS fix: Fix various build issues on Windows END_COMMIT_OVERRIDE
- Loading branch information
Showing
3,142 changed files
with
13,705 additions
and
1,519,497 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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,37 @@ | ||
# Copyright 2022 Google LLC | ||
# | ||
# Use of this source code is governed by a BSD-style | ||
# license that can be found in the LICENSE file or at | ||
# https://developers.google.com/open-source/licenses/bsd | ||
|
||
# A workflow to build the official docker image. | ||
name: Official Docker image | ||
|
||
# Runs when called from another workflow. | ||
on: | ||
workflow_call: | ||
inputs: | ||
ref: | ||
required: true | ||
type: string | ||
|
||
# By default, run all commands in a bash shell. On Windows, the default would | ||
# otherwise be powershell. | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
official_docker_image: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
submodules: recursive | ||
|
||
- name: Build | ||
shell: bash | ||
run: docker buildx 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,77 @@ | ||
# Copyright 2022 Google LLC | ||
# | ||
# Use of this source code is governed by a BSD-style | ||
# license that can be found in the LICENSE file or at | ||
# https://developers.google.com/open-source/licenses/bsd | ||
|
||
# A reusable workflow to build Packager docs. Leaves docs output in the | ||
# "gh-pages" folder. Only runs in Linux due to the dependency on doxygen, | ||
# which we install with apt. | ||
name: Build Docs | ||
|
||
# Runs when called from another workflow. | ||
on: | ||
workflow_call: | ||
inputs: | ||
ref: | ||
required: true | ||
type: string | ||
|
||
# If true, start a debug SSH server on failures. | ||
debug: | ||
required: false | ||
type: boolean | ||
default: false | ||
|
||
jobs: | ||
docs: | ||
name: Build docs | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Install dependencies | ||
run: | | ||
sudo apt install -y doxygen | ||
python3 -m pip install \ | ||
sphinx==7.1.2 \ | ||
sphinxcontrib.plantuml \ | ||
recommonmark \ | ||
cloud_sptheme \ | ||
breathe | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
|
||
- name: Generate docs | ||
run: | | ||
mkdir -p gh-pages | ||
mkdir -p build | ||
# Doxygen must run before Sphinx. Sphinx will refer to | ||
# Doxygen-generated output when it builds its own docs. | ||
doxygen docs/Doxyfile | ||
# Now build the Sphinx-based docs. | ||
make -C docs/ html | ||
# Now move the generated outputs. | ||
cp -a build/sphinx/html gh-pages/html | ||
cp -a build/doxygen/html gh-pages/docs | ||
cp docs/index.html gh-pages/index.html | ||
# Now set permissions on the generated docs. | ||
# https:/actions/upload-pages-artifact#file-permissions | ||
chmod -R +rX gh-pages/ | ||
- name: Upload docs artifacts | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: gh-pages | ||
|
||
- name: Debug | ||
uses: mxschmitt/[email protected] | ||
with: | ||
limit-access-to-actor: true | ||
if: failure() && inputs.debug |
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,38 @@ | ||
{ | ||
"comment1": "runners hosted by GitHub, always enabled", | ||
"hosted": [ | ||
{ | ||
"os": "ubuntu-latest", | ||
"os_name": "linux", | ||
"target_arch": "x64", | ||
"exe_ext": "", | ||
"generator": "Ninja" | ||
}, | ||
{ | ||
"os": "macos-latest", | ||
"os_name": "osx", | ||
"target_arch": "x64", | ||
"exe_ext": "", | ||
"generator": "Ninja" | ||
}, | ||
{ | ||
"os": "windows-latest", | ||
"os_name": "win", | ||
"target_arch": "x64", | ||
"exe_ext": ".exe", | ||
"generator": "" | ||
} | ||
], | ||
|
||
"comment2": "runners hosted by the owner, enabled by the 'self_hosted' environment being created on the repo", | ||
"selfHosted": [ | ||
{ | ||
"os": "self-hosted-linux-arm64", | ||
"os_name": "linux", | ||
"target_arch": "arm64", | ||
"exe_ext": "", | ||
"generator": "Ninja", | ||
"low_mem": "yes" | ||
} | ||
] | ||
} |
Oops, something went wrong.