forked from EIRTeam/EIRTeam.FFmpeg
-
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
12 changed files
with
233 additions
and
101 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
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 |
---|---|---|
@@ -1,16 +1,55 @@ | ||
name: 🔗 GHA | ||
on: [push, pull_request] | ||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
inputs: | ||
doRelease: | ||
description: 'Publish new release' | ||
type: boolean | ||
default: false | ||
required: false | ||
|
||
concurrency: | ||
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-runner | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
windows-build: | ||
windows-build-debug: | ||
name: 🏁 Windows | ||
needs: static-checks | ||
uses: ./.github/workflows/windows_builds.yml | ||
|
||
with: | ||
target: template_debug | ||
windows-build-release: | ||
name: 🏁 Windows Release | ||
uses: ./.github/workflows/windows_builds.yml | ||
with: | ||
target: template_release | ||
static-checks: | ||
name: 📊 Static checks | ||
uses: ./.github/workflows/static_checks.yml | ||
publish_release: | ||
name: Publish release | ||
needs: [windows-build-debug, windows-build-release] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: windows | ||
path: artifacts | ||
- name: Create release | ||
id: create_release | ||
run: | | ||
set -xe | ||
shopt -s nullglob | ||
RELDATE="$(date +'%Y-%m-%d %H:%M')" | ||
NAME="Auto-Build $RELDATE" | ||
TAGNAME="autobuild-$(date +'%Y-%m-%d-%H-%M')" | ||
hub release create $(for a in artifacts/*.{zip,tar.xz}; do echo -a $a; done) -m "$NAME" -t "master" "$TAGNAME" | ||
echo "tag_name=${TAGNAME}" >> $GITHUB_OUTPUT | ||
echo "rel_date=${RELDATE}" >> $GITHUB_OUTPUT | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} |
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 |
---|---|---|
@@ -1,70 +1,68 @@ | ||
name: 🏁 Windows Builds | ||
on: | ||
workflow_call: | ||
inputs: | ||
target: | ||
required: true | ||
type: string | ||
|
||
# Global Settings | ||
# SCONS_CACHE for windows must be set in the build environment | ||
env: | ||
# Used for the cache key. Add version suffix to force clean build. | ||
GODOT_BASE_BRANCH: master | ||
SCONSFLAGS: verbose=yes warnings=extra werror=yes module_text_server_fb_enabled=yes | ||
SCONS_CACHE_MSVC_CONFIG: true | ||
|
||
concurrency: | ||
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-windows | ||
cancel-in-progress: true | ||
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-windows-${{ inputs.target }} | ||
|
||
jobs: | ||
build-windows: | ||
# Windows 10 with latest image | ||
runs-on: "windows-latest" | ||
runs-on: "ubuntu-20.04" | ||
name: ${{ matrix.name }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- name: Editor (target=editor) | ||
cache-name: windows-editor | ||
target: editor | ||
- name: Windows build - ${{ inputs.target }} | ||
cache-name: windows | ||
target: ${{ inputs.target }} | ||
# Skip debug symbols, they're way too big with MSVC. | ||
sconsflags: debug_symbols=no vsproj=yes windows_subsystem=console | ||
bin: "./bin/godot.windows.editor.x86_64.exe" | ||
|
||
- name: Template (target=template_release) | ||
cache-name: windows-template | ||
target: template_release | ||
sconsflags: debug_symbols=no | ||
|
||
sconsflags: debug_symbols=no use_mingw=yes | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup Godot build cache | ||
uses: ./.github/actions/cache | ||
with: | ||
cache-name: ${{ matrix.cache-name }} | ||
continue-on-error: true | ||
- name: Install mingw64 | ||
shell: sh | ||
run: | | ||
sudo apt-get install mingw-w64 | ||
sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix | ||
sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix | ||
- name: Setup python and scons | ||
uses: ./.github/actions/deps | ||
|
||
- name: Setup MSVC problem matcher | ||
uses: ammaraskar/msvc-problem-matcher@master | ||
|
||
- name: Compilation | ||
uses: ./.github/actions/build | ||
with: | ||
sconsflags: ${{ env.SCONSFLAGS }} ${{ matrix.sconsflags }} | ||
platform: windows | ||
target: ${{ matrix.target }} | ||
tests: ${{ matrix.tests }} | ||
|
||
- name: Prepare artifact | ||
- name: Calculate short sha | ||
id: vars | ||
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
- name: Pack build | ||
shell: sh | ||
run: | | ||
Remove-Item bin/* -Include *.exp,*.lib,*.pdb -Force | ||
cd ./gdextension_build/build | ||
zip -9 -r eirteam-ffmpeg-${{ steps.vars.outputs.sha_short }}-${{ inputs.target }}.zip * | ||
- name: Upload artifact | ||
uses: ./.github/actions/upload-artifact | ||
with: | ||
name: ${{ matrix.cache-name }} | ||
name: windows | ||
path: ./gdextension_build/build/*.zip |
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
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
Oops, something went wrong.