commit e77f04f9983c51a11a1929bf87f7949606d1784c parent fc3fe81f37cd7e15c7b498a4b3302535f3ea03f4 Author: Darren Clarke <darren@redaranj.com> Date: Thu, 9 Nov 2023 07:58:49 +0100 Build locally Diffstat:
| M | mobile/android/.gitlab-ci.yml | | | 35 | +++++++---------------------------- |
| M | mobile/apple/.gitlab-ci.yml | | | 26 | +++++--------------------- |
2 files changed, 12 insertions(+), 49 deletions(-)
diff --git a/mobile/android/.gitlab-ci.yml b/mobile/android/.gitlab-ci.yml @@ -1,38 +1,17 @@ stages: - build -image: debian:bookworm - -variables: - DOCKER_HOST: tcp://localhost:2375/ - DOCKER_DRIVER: overlay2 - RUST_VERSION: stable - CROSS_CONTAINER_IN_CONTAINER: "true" - -services: - - name: docker:dind - alias: localhost - -before_script: - - apt-get update - - apt-get install -y curl build-essential gcc openssl libssl-dev apt-transport-https ca-certificates gnupg software-properties-common - - install -m 0755 -d /etc/apt/keyrings - - curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg - - chmod a+r /etc/apt/keyrings/docker.gpg - - echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null - - apt-get update - - apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin - - which docker - - docker ps - - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - - source $HOME/.cargo/env - - rustup override set $RUST_VERSION - - cargo install cross --git https://github.com/cross-rs/cross +.macos_runners: + tags: + - proofmode-macos + before_script: + - echo "started by ${GITLAB_USER_NAME}" build_android: + extends: + - .macos_runners stage: build script: - - chmod +x ./mobile/android/build.sh - /bin/bash ./mobile/android/build.sh artifacts: paths: diff --git a/mobile/apple/.gitlab-ci.yml b/mobile/apple/.gitlab-ci.yml @@ -1,34 +1,18 @@ stages: - build - - test -variables: - HOMEBREW_NO_AUTO_UPDATE: 1 - -.macos_saas_runners: +.macos_runners: tags: - - saas-macos-medium-m1 - image: macos-13-xcode-14 + - proofmode-macos before_script: - echo "started by ${GITLAB_USER_NAME}" - - brew install rust - - pwd - - mkdir -p ./out - - touch ./out/test123.txt build_apple: extends: - - .macos_saas_runners + - .macos_runners stage: build script: - - echo "running scripts in the build job" + - /bin/bash ./mobile/apple/build.sh artifacts: paths: - - ./out/ - -test_apple: - extends: - - .macos_saas_runners - stage: test - script: - - echo "running scripts in the test job" + - ./mobile/apple/out/