Skip to content

Commit

Permalink
ci: update Orb Tools to v12 (#54)
Browse files Browse the repository at this point in the history
* ci: migrate to orb tools 12

* ci: exclude RC010
  • Loading branch information
EricRibeiro authored Jun 8, 2023
1 parent 1ef9fa5 commit b3c83f4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 29 deletions.
19 changes: 7 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2.1
setup: true
orbs:
orb-tools: circleci/orb-tools@11.1
orb-tools: circleci/orb-tools@12.0
shellcheck: circleci/[email protected]

filters: &filters
Expand All @@ -16,18 +16,13 @@ workflows:
- orb-tools/pack:
filters: *filters
- orb-tools/review:
exclude: RC010
filters: *filters
- shellcheck/check:
filters: *filters
- orb-tools/publish:
orb-name: game-ci/unity
vcs-type: << pipeline.project.type >>
requires:
[orb-tools/lint, orb-tools/review, orb-tools/pack, shellcheck/check]
context: orb-publishing
filters: *filters
- orb-tools/continue:
pipeline-number: << pipeline.number >>
vcs-type: << pipeline.project.type >>
requires: [orb-tools/publish]
filters: *filters
orb_name: unity
pipeline_number: << pipeline.number >>
vcs_type: << pipeline.project.type >>
requires: [orb-tools/lint, orb-tools/pack, orb-tools/review, shellcheck/check]
filters: *filters
36 changes: 19 additions & 17 deletions .circleci/test-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
version: 2.1
orbs:
unity: game-ci/unity@dev:<<pipeline.git.revision>>
orb-tools: circleci/[email protected]
orb-tools: circleci/[email protected]
unity: {}

filters: &filters
tags:
only: /.*/

release-filters: &release-filters
branches:
ignore: /.*/
tags:
only: /^v[0-9]+\.[0-9]+\.[0-9]+$/

pre-steps:
mono: &mono
- run:
name: "Clone the demo project"
command: |
# Clone the "mono" demo project
git clone --branch master --single-branch https://github.com/EricRibeiro/Unity2D-Demo-Game-CI-CD.git ../Unity2D-Demo-Game-CI-CD
# Clone the Unity orb
git clone https://github.com/game-ci/unity-orb.git .
# Move the demo project to the project folder
mv ../Unity2D-Demo-Game-CI-CD ./Unity2D-Demo-Game-CI-CD
mv ../Unity2D-Demo-Game-CI-CD ./Unity2D-Demo-Game-CI-CD
il2cpp: &il2cpp
- run:
name: "Clone the demo project"
Expand All @@ -31,7 +37,7 @@ pre-steps:
git clone https://github.com/game-ci/unity-orb.git .
# Move the demo project to the project folder
mv ../Unity2D-Demo-Game-CI-CD ./Unity2D-Demo-Game-CI-CD
mv ../Unity2D-Demo-Game-CI-CD ./Unity2D-Demo-Game-CI-CD
custom-build-method: &custom-build-method
- run:
name: "Clone the demo project"
Expand Down Expand Up @@ -103,7 +109,7 @@ workflows:
filters: *filters
context: orb-testing-unity
pre-steps: *mono

# IL2CPP Builds
- unity/build:
name: "build-linux64-il2cpp"
Expand Down Expand Up @@ -156,7 +162,7 @@ workflows:
context: orb-testing-unity
pre-steps: *il2cpp

# Mono Builds
# Mono Builds
- unity/build:
name: "build-linux64-mono"
step-name: "Build StandaloneLinux64"
Expand Down Expand Up @@ -206,7 +212,7 @@ workflows:
filters: *filters
context: orb-testing-unity
pre-steps: *mono

# Other Builds
- unity/build:
name: "build-webgl"
Expand Down Expand Up @@ -349,11 +355,11 @@ workflows:
pre-steps: *custom-build-method

- orb-tools/pack:
filters: *filters
filters: *release-filters
- orb-tools/publish:
orb-name: game-ci/unity
vcs-type: << pipeline.project.type >>
pub-type: production
orb_name: game-ci/unity
vcs_type: << pipeline.project.type >>
pub_type: production
requires:
- orb-tools/pack
- test-linux
Expand All @@ -374,8 +380,4 @@ workflows:
- build-with-custom-method-osx
- build-with-custom-method-linux
context: orb-publishing
filters:
branches:
ignore: /.*/
tags:
only: /^v[0-9]+\.[0-9]+\.[0-9]+$/
filters: *release-filters

0 comments on commit b3c83f4

Please sign in to comment.