File tree 6 files changed +52
-17
lines changed
6 files changed +52
-17
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
fetch :
10
10
name : Fetch Latest Godot Engine Release
11
- runs-on : ubuntu-20 .04
11
+ runs-on : ubuntu-22 .04
12
12
outputs :
13
13
release_tag : ${{ steps.parse.outputs.tag }}
14
14
steps :
20
20
echo "tag=$TAG" >> $GITHUB_OUTPUT
21
21
current :
22
22
name : Fetch Current Godot CI release
23
- runs-on : ubuntu-20 .04
23
+ runs-on : ubuntu-22 .04
24
24
outputs :
25
25
release_tag : ${{ steps.parse.outputs.tag }}
26
26
steps :
32
32
create :
33
33
needs : [fetch, current]
34
34
name : Create New Godot CI Release
35
- runs-on : ubuntu-20 .04
35
+ runs-on : ubuntu-22 .04
36
36
if : needs.fetch.outputs.release_tag != needs.current.outputs.release_tag
37
37
steps :
38
38
- uses : actions/checkout@v3
Original file line number Diff line number Diff line change 11
11
jobs :
12
12
export-windows :
13
13
name : Windows Export
14
- runs-on : ubuntu-20 .04
14
+ runs-on : ubuntu-22 .04 # Use 22.04 with godot 4
15
15
container :
16
16
image : barichello/godot-ci:4.3
17
17
steps :
39
39
40
40
export-linux :
41
41
name : Linux Export
42
- runs-on : ubuntu-20 .04
42
+ runs-on : ubuntu-22 .04 # Use 22.04 with godot 4
43
43
container :
44
44
image : barichello/godot-ci:4.3
45
45
steps :
65
65
66
66
export-web :
67
67
name : Web Export
68
- runs-on : ubuntu-20 .04
68
+ runs-on : ubuntu-22 .04 # Use 22.04 with godot 4
69
69
container :
70
70
image : barichello/godot-ci:4.3
71
71
steps :
99
99
100
100
export-mac :
101
101
name : Mac Export
102
- runs-on : ubuntu-20 .04
102
+ runs-on : ubuntu-22 .04 # Use 22.04 with godot 4
103
103
container :
104
104
image : barichello/godot-ci:4.3
105
105
steps :
Original file line number Diff line number Diff line change 14
14
env :
15
15
IMAGE_NAME : godot-ci
16
16
jobs :
17
+ version :
18
+ name : Get Version
19
+ runs-on : ubuntu-22.04
20
+ outputs :
21
+ dotnet_version : ${{ steps.calculate.outputs.dotnet_version }}
22
+ steps :
23
+ - id : calculate
24
+ run : |
25
+ MAJOR_VERSION=$(echo ${{ github.event.inputs.version }} | cut -c -1)
26
+ MINOR_VERSION=$(echo ${{ github.event.inputs.version }} | cut -c -3)
27
+ if [ "$MAJOR_VERSION" = "3" ]
28
+ then
29
+ echo "dotnet_version=mono:latest" >> $GITHUB_OUTPUT
30
+ elif [ "$MINOR_VERSION" = "4.0" ] || [ "$MINOR_VERSION" = "4.1" ] || [ "$MINOR_VERSION" = "4.2" ] || [ "$MINOR_VERSION" = "4.3" ]
31
+ then
32
+ echo "dotnet_version=mcr.microsoft.com/dotnet/sdk:6.0-jammy" >> $GITHUB_OUTPUT
33
+ else
34
+ echo "dotnet_version=mcr.microsoft.com/dotnet/sdk:8.0-jammy" >> $GITHUB_OUTPUT
35
+ fi
36
+
17
37
build :
18
38
name : Build Image
19
- runs-on : ubuntu-20 .04
39
+ runs-on : ubuntu-22 .04
20
40
steps :
21
41
- uses : actions/checkout@v3
22
42
- run : echo IMAGE_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
49
69
GODOT_PLATFORM=${{ startsWith( github.event.inputs.version, '3.' ) && 'linux_headless.64' || 'linux.x86_64' }}
50
70
build-mono :
51
71
name : Build Mono Image
52
- runs-on : ubuntu-20.04
72
+ runs-on : ubuntu-22.04
73
+ needs : [version]
53
74
steps :
54
75
- uses : actions/checkout@v3
55
76
- run : echo IMAGE_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
75
96
ghcr.io/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:mono-${{ github.event.inputs.version }}${{ env.IMAGE_TAG }}
76
97
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:mono-${{ github.event.inputs.version }}${{ env.IMAGE_TAG }}
77
98
build-args : |
99
+ IMAGE=${{ needs.version.outputs.dotnet_version }}
78
100
GODOT_VERSION=${{ github.event.inputs.version }}
79
101
RELEASE_NAME=${{ github.event.inputs.release_name }}
80
102
SUBDIR=${{ github.event.inputs.release_name != 'stable' && format('/{0}', github.event.inputs.release_name) || '' }}
Original file line number Diff line number Diff line change 7
7
jobs :
8
8
version :
9
9
name : Get Version
10
- runs-on : ubuntu-20 .04
10
+ runs-on : ubuntu-22 .04
11
11
outputs :
12
12
version : ${{ steps.calculate.outputs.version }}
13
13
release_name : ${{ steps.calculate.outputs.release_name }}
14
+ dotnet_version : ${{ steps.calculate.outputs.dotnet_version }}
14
15
steps :
15
16
- id : calculate
16
17
run : |
17
18
REF_NAME=${{ github.ref_name }}
18
19
echo "version=${REF_NAME%-*}" >> $GITHUB_OUTPUT
19
20
echo "release_name=${REF_NAME#*-}" >> $GITHUB_OUTPUT
21
+ MAJOR_VERSION=$(echo ${REF_NAME%-*} | cut -c -1)
22
+ MINOR_VERSION=$(echo ${REF_NAME%-*} | cut -c -3)
23
+ if [ "$MAJOR_VERSION" = "3" ]
24
+ then
25
+ echo "dotnet_version=mono:latest" >> $GITHUB_OUTPUT
26
+ elif [ "$MINOR_VERSION" = "4.0" ] || [ "$MINOR_VERSION" = "4.1" ] || [ "$MINOR_VERSION" = "4.2" ] || [ "$MINOR_VERSION" = "4.3" ]
27
+ then
28
+ echo "dotnet_version=mcr.microsoft.com/dotnet/sdk:6.0-jammy" >> $GITHUB_OUTPUT
29
+ else
30
+ echo "dotnet_version=mcr.microsoft.com/dotnet/sdk:8.0-jammy" >> $GITHUB_OUTPUT
31
+ fi
32
+
20
33
build :
21
34
name : Build Image
22
- runs-on : ubuntu-20 .04
35
+ runs-on : ubuntu-22 .04
23
36
needs : [version]
24
37
steps :
25
38
- uses : actions/checkout@v3
53
66
GODOT_PLATFORM=${{ startsWith( needs.version.outputs.version, '3.' ) && 'linux_headless.64' || 'linux.x86_64' }}
54
67
build-mono :
55
68
name : Build Mono Image
56
- runs-on : ubuntu-20 .04
69
+ runs-on : ubuntu-22 .04
57
70
needs : [version]
58
71
steps :
59
72
- uses : actions/checkout@v3
81
94
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:mono-latest
82
95
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:mono-${{ needs.version.outputs.version }}
83
96
build-args : |
97
+ IMAGE=${{ needs.version.outputs.dotnet_version }}
84
98
GODOT_VERSION=${{ needs.version.outputs.version }}
85
99
RELEASE_NAME=${{ needs.version.outputs.release_name }}
86
100
ZIP_GODOT_PLATFORM=${{ startsWith( needs.version.outputs.version, '3.' ) && 'linux_headless_64' || 'linux_x86_64' }}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ ARG GODOT_PLATFORM="linux.x86_64"
35
35
36
36
RUN wget https://github.com/godotengine/godot-builds/releases/download/${GODOT_VERSION}-${RELEASE_NAME}/Godot_v${GODOT_VERSION}-${RELEASE_NAME}_${GODOT_PLATFORM}.zip \
37
37
&& wget https://github.com/godotengine/godot-builds/releases/download/${GODOT_VERSION}-${RELEASE_NAME}/Godot_v${GODOT_VERSION}-${RELEASE_NAME}_export_templates.tpz \
38
- && mkdir ~/.cache \
38
+ && mkdir -p ~/.cache \
39
39
&& mkdir -p ~/.config/godot \
40
40
&& mkdir -p ~/.local/share/godot/export_templates/${GODOT_VERSION}.${RELEASE_NAME} \
41
41
&& unzip Godot_v${GODOT_VERSION}-${RELEASE_NAME}_${GODOT_PLATFORM}.zip \
Original file line number Diff line number Diff line change 1
- FROM mono:latest
1
+ ARG IMAGE="mcr.microsoft.com/dotnet/sdk:8.0-jammy"
2
+ FROM $IMAGE
2
3
LABEL author="https://github.com/aBARICHELLO/godot-ci/graphs/contributors"
3
4
4
5
USER root
@@ -8,8 +9,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
8
9
ca-certificates \
9
10
git \
10
11
git-lfs \
11
- python \
12
- python-openssl \
13
12
unzip \
14
13
wget \
15
14
zip \
@@ -41,7 +40,7 @@ ARG GODOT_ZIP_PLATFORM="linux_x86_64"
41
40
42
41
RUN wget https://github.com/godotengine/godot-builds/releases/download/${GODOT_VERSION}-${RELEASE_NAME}/Godot_v${GODOT_VERSION}-${RELEASE_NAME}_mono_${GODOT_ZIP_PLATFORM}.zip \
43
42
&& wget https://github.com/godotengine/godot-builds/releases/download/${GODOT_VERSION}-${RELEASE_NAME}/Godot_v${GODOT_VERSION}-${RELEASE_NAME}_mono_export_templates.tpz \
44
- && mkdir ~/.cache \
43
+ && mkdir -p ~/.cache \
45
44
&& mkdir -p ~/.config/godot \
46
45
&& mkdir -p ~/.local/share/godot/export_templates/${GODOT_VERSION}.${RELEASE_NAME}.mono \
47
46
&& unzip Godot_v${GODOT_VERSION}-${RELEASE_NAME}_mono_${GODOT_ZIP_PLATFORM}.zip \
You can’t perform that action at this time.
0 commit comments