-
Notifications
You must be signed in to change notification settings - Fork 0
chore: add github actions #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
b32a643
wip github actions
Jack-Kaller 47c5c00
add default job target
Jack-Kaller d6b7fae
trigger on PR
Jack-Kaller e13a16b
trigger on PR
Jack-Kaller 78f7b5d
fix build
Jack-Kaller 41eb614
add PR type
Jack-Kaller 3391f9c
fix mingw
Jack-Kaller 7c0c971
job target to github env
Jack-Kaller 4927b71
default env Both
Jack-Kaller 3a0a5d8
add debug echo
Jack-Kaller 9708061
add debug echo
Jack-Kaller d15eda2
remove job targetr
Jack-Kaller 95fc02e
test arm64
Jack-Kaller 6f5f854
add font config
Jack-Kaller 50ab004
remove export preset
Jack-Kaller 59095e0
remive preset file
Jack-Kaller 2df7b84
add --verbose
Jack-Kaller 41d382b
add verbose
Jack-Kaller e3f234e
remove menu_music
Jack-Kaller 4ddefee
add verbose
Jack-Kaller 26ae930
disconnect signal
Jack-Kaller b8e948c
remove fake path
Jack-Kaller b3de4cd
remive linux build
Jack-Kaller 07360c5
remove gwj countdown
Jack-Kaller 3bb4ee3
remove export preset
Jack-Kaller a805d2b
add preset
Jack-Kaller 0e549f1
change export path
Jack-Kaller 5f6a7db
modify export path
Jack-Kaller c64ed65
change expport path
Jack-Kaller 6afb8fd
change expport path
Jack-Kaller ca1d526
change expport path
Jack-Kaller fcb220a
reset export cfg
Jack-Kaller 34ed91c
add pwd debug line
Jack-Kaller 18bb22a
add l -a
Jack-Kaller fb6e4dc
ls
Jack-Kaller 3857adc
ls
Jack-Kaller db593dc
ls
Jack-Kaller 2ac30b5
change godot project location
Jack-Kaller b9463e7
test
Jack-Kaller 100f12f
test
Jack-Kaller 33b68b1
test
Jack-Kaller eebd1c3
test
Jack-Kaller 7a91e78
test
Jack-Kaller File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,98 @@ | ||
| name: Debug build | ||
| run-name: Menu template build | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| types: [opened, synchronize] | ||
| workflow_dispatch: | ||
| inputs: | ||
| job_target: | ||
| description: 'Select the platform' | ||
| required: true | ||
| default: 'Both' | ||
| type: choice | ||
| options: | ||
| - Linux | ||
| - Windows | ||
| - Both | ||
|
|
||
| env: | ||
| GODOT_VERSION: 4.4 | ||
| GODOT_PROJECT_LOCATION: ./project.godot | ||
| EXPORT_FOLDER_LINUX: bin/linux | ||
| EXPORT_FOLDER_WINDOWS: bin/windows | ||
| APPLICATION_NAME: menu_template | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: archlinux:latest | ||
| steps: | ||
| - name: Settings extra variables | ||
| run: | ||
| export DATE=$(date +'%Y-%m-%d') | ||
| echo "DATE=$DATE" >> $GITHUB_ENV | ||
| echo "MAIN_FOLDER=$(pwd)" >> $GITHUB_ENV | ||
| echo "JOB_TARGET='Both'" >> $GITHUB_ENV | ||
|
|
||
| - name: Vérifier la variable MAIN_FOLDER | ||
| run: | | ||
| echo "MAIN_FOLDER: ${{ env.MAIN_FOLDER }}" | ||
|
|
||
| - name: Debug job target | ||
| run: echo ${{ env.JOB_TARGET }} | ||
|
|
||
| - name: Installing dependencies | ||
| run: pacman -Syu --noconfirm git bash yasm python python-pip scons gcc diffutils make wget unzip tar mingw-w64 fontconfig | ||
|
|
||
| - name: Checkout submodules | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: Prepare Godot | ||
| run: | | ||
| wget -q -O godot_linux.zip https://github.com/godotengine/godot/releases/download/${{ env.GODOT_VERSION}}-stable/Godot_v${{ env.GODOT_VERSION }}-stable_linux.x86_64.zip | ||
| unzip godot_linux.zip | ||
| wget -q -O godot_export_templates.tpz https://github.com/godotengine/godot/releases/download/${{ env.GODOT_VERSION }}-stable/Godot_v${{ env.GODOT_VERSION }}-stable_export_templates.tpz | ||
| mkdir -p ~/.local/share/godot/export_templates/${{ env.GODOT_VERSION }}.stable | ||
| unzip godot_export_templates.tpz -d ~/.local/share/godot/export_templates/${{ env.GODOT_VERSION }}.stable | ||
| mv ~/.local/share/godot/export_templates/${{ env.GODOT_VERSION }}.stable/templates/* ~/.local/share/godot/export_templates/${{ env.GODOT_VERSION }}.stable | ||
|
|
||
| - name: Créer le dossier d’export Linux | ||
| run: mkdir -p ${{ env.MAIN_FOLDER }}/${{ env.EXPORT_FOLDER_LINUX }} | ||
|
|
||
| - name: Créer le dossier d’export Windows | ||
| run: mkdir -p ${{ env.MAIN_FOLDER }}/${{ env.EXPORT_FOLDER_WINDOWS }} | ||
|
|
||
| - name: Building debug Linux | ||
| run: | | ||
| mkdir -p ${{ env.EXPORT_FOLDER_LINUX }} | ||
| ./Godot_v${{ env.GODOT_VERSION }}-stable_linux.x86_64 --import ${{ env.GODOT_PROJECT_LOCATION }} --quiet --headless --export-debug --verbose Linux ${{ env.MAIN_FOLDER }}/${{ env.EXPORT_FOLDER_LINUX }}/${{ env.APPLICATION_NAME }}.x86_64 --verbose | ||
| chmod +x ${{ env.EXPORT_FOLDER_LINUX }}/${{ env.APPLICATION_NAME }}.sh --verbose | ||
| chmod +x ${{ env.EXPORT_FOLDER_LINUX }}/${{ env.APPLICATION_NAME }}.x86_64 --verbose | ||
|
|
||
| - name: Tar files | ||
| run: tar -cvf ${{ env.APPLICATION_NAME }}_linux_debug_${{ env.DATE }}.tar ${{ env.EXPORT_FOLDER_LINUX }} | ||
|
|
||
| - name: Uploading GDExtension Linux artifact debug | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ env.APPLICATION_NAME }}_linux_debug_${{ env.DATE }}.tar | ||
| path: ${{ env.APPLICATION_NAME }}_linux_debug_${{ env.DATE }}.tar | ||
|
|
||
| - name: Building debug Windows | ||
| run: | | ||
| mkdir -p ${{ env.EXPORT_FOLDER_WINDOWS }} | ||
| ./Godot_v${{ env.GODOT_VERSION }}-stable_linux.x86_64 --import ${{ env.GODOT_PROJECT_LOCATION }} --quiet --headless --export-debug Windows ${{ env.MAIN_FOLDER }}/${{ env.EXPORT_FOLDER_WINDOWS }}/${{ env.APPLICATION_NAME }}.exe | ||
|
|
||
| - name: Uploading GDExtension Windows artifact debug | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ env.APPLICATION_NAME }}_windows_debug_${{ env.DATE }} | ||
| path: ${{ env.EXPORT_FOLDER_WINDOWS }}/ | ||
|
|
||
|
|
||
This file contains hidden or 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 was deleted.
Oops, something went wrong.
Binary file not shown.
34 changes: 0 additions & 34 deletions
34
addons/gwj_countdown/assets/clock_and_gwj_mascot_80x80.png.import
This file was deleted.
Oops, something went wrong.
167 changes: 0 additions & 167 deletions
167
addons/gwj_countdown/assets/clock_and_gwj_mascot_vector.svg
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
addons/gwj_countdown/assets/clock_and_gwj_mascot_vector.svg.import
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The JOB_TARGET is hardcoded to 'Both' but should use the workflow input parameter. Change to: echo "JOB_TARGET=${{ github.event.inputs.job_target || 'Both' }}" >> $GITHUB_ENV