Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4bbcde461d | |||
| cba15111e7 | |||
| 3bc95acf7b |
@@ -1,60 +1,32 @@
|
||||
name: Linux arm64
|
||||
run-name: Build And Test
|
||||
|
||||
on: [push]
|
||||
|
||||
env:
|
||||
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 60
|
||||
XMAKE_ROOT: "y"
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 🧾 Check out
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: 📦 Packages cache
|
||||
- name: Packages cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ${{ github.workspace }}/build/.packages
|
||||
key: ${{ runner.os }}-xmake_cache
|
||||
|
||||
- name: 🤖 Setup Godot
|
||||
uses: chickensoft-games/setup-godot@v2
|
||||
with:
|
||||
version: 4.2.2
|
||||
use-dotnet: false
|
||||
include-templates: true
|
||||
- name: XMake config
|
||||
run: xmake f -p linux -y
|
||||
|
||||
- name: 🍗 Setup XMake
|
||||
uses: xmake-io/github-action-setup-xmake@v1
|
||||
with:
|
||||
xmake-version: latest
|
||||
actions-cache-folder: '.xmake-cache'
|
||||
actions-cache-key: 'xmake-ubuntu'
|
||||
|
||||
- name: 🐍 Install Python
|
||||
run: xmake require --extra={system=false} -y python
|
||||
|
||||
- name: ⚙️ XMake config
|
||||
# TODO: change that to release
|
||||
run: xmake f -m debug -p linux -y -v
|
||||
|
||||
- name: 🏗️ Build
|
||||
- name: Build
|
||||
run: xmake
|
||||
|
||||
- name: 🧐 Test
|
||||
run: xmake test
|
||||
|
||||
- name: 🚀 Publish
|
||||
# the first command is needed only for the template
|
||||
run: |
|
||||
xmake gengdextension
|
||||
xmake import-assets
|
||||
xmake p
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Debug Build
|
||||
path: ${{ github.workspace }}/publish
|
||||
- name: Test
|
||||
run: xmake test
|
||||
@@ -82,7 +82,7 @@ encrypt_directory=false
|
||||
custom_template/debug=""
|
||||
custom_template/release=""
|
||||
debug/export_console_wrapper=1
|
||||
binary_format/embed_pck=true
|
||||
binary_format/embed_pck=false
|
||||
texture_format/bptc=true
|
||||
texture_format/s3tc=true
|
||||
texture_format/etc=false
|
||||
|
||||
@@ -16,7 +16,7 @@ add_rules("mode.debug", "mode.release")
|
||||
set_languages("c++20")
|
||||
|
||||
-- use latest 4.x version by default
|
||||
add_requires("godotcpp4 4.2")
|
||||
add_requires("godotcpp4")
|
||||
|
||||
|
||||
includes("tasks.lua")
|
||||
|
||||
Reference in New Issue
Block a user