mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-12-16 12:08:49 +00:00
Added docker CI/CD job
This commit is contained in:
parent
6866c01524
commit
a34ad3bff8
4
.ci/docker.sh
Executable file
4
.ci/docker.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
mkdir build
|
||||||
|
|
||||||
|
docker build -f docker/azahar-room/Dockerfile -t azahar-room .
|
||||||
|
docker save azahar-room:latest > build/azahar-room.dockerimage
|
||||||
25
.github/workflows/build.yml
vendored
25
.github/workflows/build.yml
vendored
@ -22,6 +22,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: source
|
name: source
|
||||||
path: artifacts/
|
path: artifacts/
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
@ -61,6 +62,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: ${{ env.OS }}-${{ env.TARGET }}
|
name: ${{ env.OS }}-${{ env.TARGET }}
|
||||||
path: artifacts/
|
path: artifacts/
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
runs-on: ${{ (matrix.target == 'x86_64' && 'macos-15-intel') || 'macos-26' }}
|
runs-on: ${{ (matrix.target == 'x86_64' && 'macos-15-intel') || 'macos-26' }}
|
||||||
strategy:
|
strategy:
|
||||||
@ -102,6 +104,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: ${{ env.OS }}-${{ env.TARGET }}
|
name: ${{ env.OS }}-${{ env.TARGET }}
|
||||||
path: artifacts/
|
path: artifacts/
|
||||||
|
|
||||||
macos-universal:
|
macos-universal:
|
||||||
runs-on: macos-26
|
runs-on: macos-26
|
||||||
needs: macos
|
needs: macos
|
||||||
@ -133,6 +136,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: ${{ env.OS }}-${{ env.TARGET }}
|
name: ${{ env.OS }}-${{ env.TARGET }}
|
||||||
path: artifacts/
|
path: artifacts/
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
@ -210,6 +214,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: ${{ env.OS }}-${{ env.TARGET }}
|
name: ${{ env.OS }}-${{ env.TARGET }}
|
||||||
path: artifacts/
|
path: artifacts/
|
||||||
|
|
||||||
android:
|
android:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
@ -261,3 +266,23 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: ${{ env.OS }}-${{ env.TARGET }}
|
name: ${{ env.OS }}-${{ env.TARGET }}
|
||||||
path: src/android/app/artifacts/
|
path: src/android/app/artifacts/
|
||||||
|
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: docker:dind
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Build Docker image
|
||||||
|
run: ./.ci/docker.sh
|
||||||
|
- name: Move Docker image to artifacts directory
|
||||||
|
run: |
|
||||||
|
mkdir -p artifacts
|
||||||
|
mv build/*.dockerimage artifacts/
|
||||||
|
- name: Upload
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: docker
|
||||||
|
path: artifacts/
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
@ -10,6 +10,9 @@ src/installer/*.exe
|
|||||||
src/common/scm_rev.cpp
|
src/common/scm_rev.cpp
|
||||||
.travis.descriptor.json
|
.travis.descriptor.json
|
||||||
|
|
||||||
|
# Docker image files
|
||||||
|
*.dockerimage
|
||||||
|
|
||||||
# Project/editor files
|
# Project/editor files
|
||||||
*.swp
|
*.swp
|
||||||
*.kdev4
|
*.kdev4
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user