Skip to content

Commit 76a2997

Browse files
committed
🌐 Set up CI/CD for github.
1 parent e1913d9 commit 76a2997

22 files changed

+103
-89
lines changed

.github/actions/python-regression-tests/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ runs:
6464
Write-Output "ubuntu20_arm_workaround: ${{ inputs.ubuntu20_arm_workaround }}"
6565
Write-Output "upload_test_artifacts: ${{ inputs.upload_test_artifacts }}"
6666
67-
# cache management: https://github.com/MeshInspector/MeshLib/actions/caches
67+
# cache management: https://github.com/alpinebuster/meshsdk/actions/caches
6868
- name: Cache autotest data from S3 Tests
6969
uses: actions/cache@v4
7070
with:

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ updates:
66
directory: "/"
77
schedule:
88
# Check for updates to GitHub Actions every week
9-
interval: "weekly"
9+
interval: "weekly"

.github/workflows/build-test-distribute.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: Build Test Distribute
22

33
# Controls when the action will run.
44
on:
5-
# Triggers the workflow on push or pull request events but only for the master branch
5+
# Triggers the workflow on push or pull request events but only for the main branch
66
push:
7-
branches: [ master ]
7+
branches: [ main ]
88
pull_request:
9-
branches: [ master ]
9+
branches: [ main ]
1010

1111
# Allows you to run this workflow manually from the Actions tab
1212
workflow_dispatch:
@@ -139,7 +139,7 @@ jobs:
139139
- config
140140
- windows-build-test
141141
timeout-minutes: 60
142-
runs-on: [self-hosted, windows, x64, vs-2019, vcpkg-2024.10.21, meshinspector]
142+
runs-on: [ self-hosted, windows, x64, vs-2019, vcpkg-2024.10.21 ]
143143
env:
144144
vs19_vcpkg_version: ${{ needs.config.outputs.vs19_vcpkg_version }}
145145
steps:
@@ -280,7 +280,7 @@ jobs:
280280
mv "$PKG_FILE" "${PKG_FILE/Dist/Dist_${{ needs.config.outputs.app_version }}}"
281281
done
282282
for PKG_FILE in MeshLib*.nupkg ; do
283-
mv "$PKG_FILE" "${PKG_FILE/MeshLib/MeshLib_${{ needs.config.outputs.app_version }}}"
283+
mv "$PKG_FILE" "${PKG_FILE/meshsdk/MeshLib_${{ needs.config.outputs.app_version }}}"
284284
done
285285
for PKG_FILE in meshlib*-dev.deb meshlib*-dev.rpm meshlib*.pkg meshlib_*.zip meshlib_*.tar.xz; do
286286
mv "$PKG_FILE" "${PKG_FILE/meshlib/meshlib_${{ needs.config.outputs.app_version }}}"
@@ -324,7 +324,7 @@ jobs:
324324
needs: [ config, ubuntu-arm64-build-test ]
325325
uses: ./.github/workflows/update-docs.yml
326326
with:
327-
output_folder: MeshLib/dev
327+
output_folder: meshsdk/dev
328328
secrets: inherit
329329

330330
test-pip-build:

.github/workflows/build-test-emscripten.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ on:
1616
jobs:
1717
emscripten-build:
1818
timeout-minutes: 40
19-
runs-on: [ self-hosted, linux-arm64, spot, meshinspector ]
19+
runs-on: [ self-hosted, linux-arm64, spot ]
2020
container:
21-
image: meshlib/meshlib-emscripten-arm64:${{ inputs.docker_image_tag }}
21+
image: meshsdk/meshsdk-emscripten-arm64:${{ inputs.docker_image_tag }}
2222
strategy:
2323
fail-fast: false
2424
matrix:
@@ -100,6 +100,7 @@ jobs:
100100
- name: Build
101101
env:
102102
MR_EMSCRIPTEN: "ON"
103+
MR_EMSCRIPTEN_SDK: "ON"
103104
MESHLIB_BUILD_RELEASE: "ON"
104105
MESHLIB_BUILD_DEBUG: "OFF"
105106
MR_EMSCRIPTEN_SINGLE: ${{ fromJSON('["OFF", "ON"]')[matrix.config == 'Singlethreaded'] }}
@@ -127,16 +128,16 @@ jobs:
127128

128129
- name: Create Package
129130
run: |
130-
cp -a /usr/local/lib/${{ matrix.thirdparty-dir }} ./meshlib_install
131-
./scripts/cmake_install.sh ./meshlib_install
132-
( cd ./meshlib_install ; zip -r ../meshlib_${{ matrix.package_name }} * )
131+
cp -a /usr/local/lib/${{ matrix.thirdparty-dir }} ./meshsdk_install
132+
./scripts/cmake_install.sh ./meshsdk_install
133+
( cd ./meshsdk_install ; zip -r ../meshsdk_${{ matrix.package_name }} * )
133134

134135
- name: Build C++ examples
135136
run: |
136137
emcmake cmake \
137138
-S examples/cpp-examples \
138139
-B cpp-examples-build \
139-
-D CMAKE_FIND_ROOT_PATH=$(pwd)/meshlib_install/ \
140+
-D CMAKE_FIND_ROOT_PATH=$(pwd)/meshsdk_install/ \
140141
${{ matrix.target_name == 'emscripten-wasm64' && '-D CMAKE_C_FLAGS="-sMEMORY64=1" -D CMAKE_CXX_FLAGS="-sMEMORY64=1"' || '' }}
141142
cmake \
142143
--build cpp-examples-build \
@@ -147,5 +148,5 @@ jobs:
147148
uses: actions/upload-artifact@v4
148149
with:
149150
name: Distributives_${{ matrix.package_name }}
150-
path: meshlib_${{ matrix.package_name }}.zip
151+
path: meshsdk_${{ matrix.package_name }}.zip
151152
retention-days: 1

.github/workflows/build-test-linux-vcpkg.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
timeout-minutes: 40
3333
runs-on: ${{ matrix.os }}
3434
container:
35-
image: meshlib/meshlib-rockylinux8-vcpkg-${{ matrix.arch }}:${{ inputs.docker_image_tag }}
35+
image: meshsdk/meshsdk-rockylinux8-vcpkg-${{ matrix.arch }}:${{ inputs.docker_image_tag }}
3636
options: --user root
3737
strategy:
3838
fail-fast: false
@@ -63,7 +63,7 @@ jobs:
6363
- arch: x64
6464
os: ubuntu-latest
6565
- arch: arm64
66-
os: [ self-hosted, linux-arm64, spot, meshinspector ]
66+
os: [ self-hosted, linux-arm64, spot ]
6767
- arch: arm64
6868
compiler: GCC 11
6969
skip_mrbind: true # GCC + ARM64 build has unresolved problems

.github/workflows/build-test-ubuntu-arm64.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ on:
3030
jobs:
3131
ubuntu-arm-build-test:
3232
timeout-minutes: 60
33-
runs-on: [ self-hosted, linux-arm64, spot, meshinspector ]
33+
runs-on: [ self-hosted, linux-arm64, spot ]
3434
container:
3535
image: ${{ matrix.docker-image }}
3636
strategy:
@@ -41,17 +41,17 @@ jobs:
4141
compiler: [ clang ]
4242
include:
4343
- os: ubuntu20
44-
docker-image: meshlib/meshlib-ubuntu20-arm64:${{ inputs.docker_image_tag }}
44+
docker-image: meshsdk/meshsdk-ubuntu20-arm64:${{ inputs.docker_image_tag }}
4545
cxx-compiler: /usr/bin/clang++-11
4646
c-compiler: /usr/bin/clang-11
4747
cxx-standard: 20
4848
- os: ubuntu22
49-
docker-image: meshlib/meshlib-ubuntu22-arm64:${{ inputs.docker_image_tag }}
49+
docker-image: meshsdk/meshsdk-ubuntu22-arm64:${{ inputs.docker_image_tag }}
5050
cxx-compiler: /usr/bin/clang++-14
5151
c-compiler: /usr/bin/clang-14
5252
cxx-standard: 20
5353
- os: ubuntu24
54-
docker-image: meshlib/meshlib-ubuntu24-arm64:${{ inputs.docker_image_tag }}
54+
docker-image: meshsdk/meshsdk-ubuntu24-arm64:${{ inputs.docker_image_tag }}
5555
cxx-compiler: /usr/bin/clang++-18
5656
c-compiler: /usr/bin/clang-18
5757
cxx-standard: 23

.github/workflows/build-test-ubuntu-x64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
timeout-minutes: 60
4040
runs-on: [ubuntu-latest]
4141
container:
42-
image: meshlib/meshlib-${{matrix.os}}:${{inputs.docker_image_tag}}
42+
image: meshsdk/meshsdk-${{matrix.os}}:${{inputs.docker_image_tag}}
4343
options: --user root
4444
strategy:
4545
fail-fast: false

.github/workflows/build-test-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
CUDA-MINOR: '0'
6565
vcpkg-version: ${{ inputs.vs22_vcpkg_version }}
6666
- os: windows-2019
67-
runner: [self-hosted, windows, x64, vs-2019, meshinspector]
67+
runner: [ self-hosted, windows, x64, vs-2019 ]
6868
vc-path: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community'
6969
CUDA-VERSION: '11.4.2.47141'
7070
CUDA-MAJOR: '11'

.github/workflows/pip-build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Build Pip Wheels
22

33
# When ran from the github UI, we build the target commit exactly.
4-
# When ran on release, we use the latest tagged commit in the `master` branch.
4+
# When ran on release, we use the latest tagged commit in the `main` branch.
55
# This doesn't run directly on pull request, because it's impossible to disable the whole file
66
# with a single condition (specific label present). Because of that, we conditionally run this from a separate `.yml` file.
77

@@ -52,7 +52,7 @@ jobs:
5252
timeout-minutes: 80
5353
runs-on: ${{ matrix.runner }}
5454
container:
55-
image: meshlib/meshlib-${{matrix.os}}:${{inputs.docker_image_tag || 'latest'}}
55+
image: meshsdk/meshsdk-${{matrix.os}}:${{inputs.docker_image_tag || 'latest'}}
5656
options: ${{ matrix.container-options }}
5757
strategy:
5858
fail-fast: false
@@ -67,7 +67,7 @@ jobs:
6767
- platform: "aarch64"
6868
os: "ubuntu20-arm64"
6969
container-options: " " # empty
70-
runner: [ self-hosted, linux-arm64, on-demand, meshinspector ]
70+
runner: [ self-hosted, linux-arm64, on-demand ]
7171
# When using Clang 11 on Ubuntu Arm 20.04, we get some obscure ABI issues that fail some tests,
7272
# see the comments in `test_regression/test_algorithms/test_decimate.py` for more details.
7373
compiler: /usr/bin/clang++-18
@@ -182,7 +182,7 @@ jobs:
182182
windows-pip-build:
183183
needs: setup
184184
timeout-minutes: 90
185-
runs-on: [self-hosted, windows, x64, vs-2019, meshinspector]
185+
runs-on: [ self-hosted, windows, x64, vs-2019 ]
186186
strategy:
187187
fail-fast: false
188188
permissions:
@@ -414,7 +414,7 @@ jobs:
414414
container-options: "--user root"
415415
container-prefix: " "
416416
- platform: "aarch64"
417-
runner: [ self-hosted, linux-arm64, on-demand, meshinspector ]
417+
runner: [ self-hosted, linux-arm64, on-demand ]
418418
container-options: " " # empty
419419
container-prefix: "arm64v8/"
420420
- os: "ubuntu:20.04"
@@ -611,7 +611,7 @@ jobs:
611611
post-release-test:
612612
if: ${{ github.event_name == 'release' }}
613613
needs: upload-to-release
614-
uses: MeshInspector/MeshLib/.github/workflows/release-tests.yml@master
614+
uses: alpinebuster/meshsdk/.github/workflows/release-tests.yml@main
615615

616616
delete-artifacts:
617617
timeout-minutes: 5

.github/workflows/prepare-images.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ jobs:
5252
os: ubuntu-latest
5353
- arch: arm64
5454
image-suffix: '-arm64'
55-
os: [ self-hosted, linux-arm64, on-demand, meshinspector ]
55+
os: [ self-hosted, linux-arm64, on-demand ]
5656
runs-on: ${{ matrix.os }}
5757
env:
5858
dockerfile: ${{ matrix.distro }}Dockerfile
59-
image: meshlib/meshlib-${{ matrix.distro }}${{ matrix.image-suffix }}:${{ inputs.docker_image_tag }}
59+
image: meshsdk/meshsdk-${{ matrix.distro }}${{ matrix.image-suffix }}:${{ inputs.docker_image_tag }}
6060
steps:
6161
- name: Work-around possible permission issues
6262
shell: bash
@@ -89,7 +89,7 @@ jobs:
8989
- name: Login to DockerHub
9090
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
9191
with:
92-
username: meshlib
92+
username: alpinebuster
9393
password: ${{ secrets.DOCKERHUB_TOKEN }}
9494

9595
- name: Build Linux image
@@ -113,10 +113,10 @@ jobs:
113113
- arch: x64
114114
runner: ubuntu-latest
115115
- arch: arm64
116-
runner: [ self-hosted, linux-arm64, on-demand, meshinspector ]
116+
runner: [ self-hosted, linux-arm64, on-demand ]
117117
runs-on: ${{ matrix.runner }}
118118
env:
119-
image: meshlib/meshlib-${{ matrix.os }}-vcpkg-${{ matrix.arch }}:${{ inputs.vcpkg_docker_image_tag }}
119+
image: meshsdk/meshsdk-${{ matrix.os }}-vcpkg-${{ matrix.arch }}:${{ inputs.vcpkg_docker_image_tag }}
120120
vcpkg_triplet: ${{ matrix.arch }}-linux-meshlib
121121
steps:
122122
- name: Remove unused Docker data
@@ -128,7 +128,7 @@ jobs:
128128
- name: Login to DockerHub
129129
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
130130
with:
131-
username: meshlib
131+
username: alpinebuster
132132
password: ${{ secrets.DOCKERHUB_TOKEN }}
133133

134134
- name: Build Linux vcpkg image

0 commit comments

Comments
 (0)