Skip to content

Commit

Permalink
WIP2
Browse files Browse the repository at this point in the history
  • Loading branch information
busticated committed Apr 9, 2022
1 parent ca0ba19 commit 9cb91a5
Showing 1 changed file with 49 additions and 8 deletions.
57 changes: 49 additions & 8 deletions .circleci/config.yml
Expand Up @@ -20,15 +20,37 @@ jobs:
image: ubuntu-2004:current
steps:
- run:
name: "Create Tested Platforms File in Workspace"
name: "Create Tested Platforms Files in Workspace"
command: |
mkdir -p $HOME/workspace
touch $HOME/workspace/tested-platforms
mkdir -p $HOME/workspace/tested-platforms
touch $HOME/workspace/tested-platforms/windows-x64
touch $HOME/workspace/tested-platforms/darwin-x64
touch $HOME/workspace/tested-platforms/ubuntu-x64
ls -la $HOME/workspace
ls -la $HOME/workspace/tested-platforms
- persist_to_workspace:
root: ~/workspace
paths:
- tested-platforms
- tested-platforms/windows-x64
- tested-platforms/darwin-x64
- tested-platforms/ubuntu-x64
validate-toolchain-platforms:
machine:
image: ubuntu-2004:current
steps:
- attach_workspace:
at: ~/workspace
- run:
name: "Validate Tested Toolchain Platforms"
command: |
ls -la $HOME/workspace
ls -la $HOME/workspace/tested-platforms
echo ":::: Tested Windows Platforms"
cat $HOME/workspace/tested-platforms/windows-x64
echo ":::: Tested Darwin Platforms"
cat $HOME/workspace/tested-platforms/darwin-x64
echo ":::: Tested Ubuntu Platforms"
cat $HOME/workspace/tested-platforms/ubuntu-x64
build-for-windows:
executor:
name: win/default
Expand Down Expand Up @@ -60,6 +82,9 @@ jobs:
- test-localcompiler-nix:
tasks: << parameters.tasks >>
platform: << parameters.platform >>
- save-platform-to-workspace:
os: darwin-x64
platform: << parameters.platform >>
build-for-ubuntu:
machine:
image: ubuntu-2004:current
Expand All @@ -75,6 +100,9 @@ jobs:
- test-localcompiler-nix:
tasks: << parameters.tasks >>
platform: << parameters.platform >>
- save-platform-to-workspace:
os: ubuntu-x64
platform: << parameters.platform >>
combine-binaries:
docker:
- image: alpine:latest
Expand Down Expand Up @@ -293,15 +321,21 @@ commands:
PRTCL_DISABLE_AUTOUPDATE: "1"
save-platform-to-workspace:
parameters:
os:
type: string
platform:
type: string
steps:
- attach_workspace:
at: ~/workspace
- run:
name: "Save Platform to Workspace"
command: |
echo "<< parameters.platform >>" >> $HOME/workspace/tested-platforms
- when:
condition: true
steps:
- run:
name: "Save Platform to Workspace (*nix)"
command: |
echo ":::: ON: << parameters.os >>"
echo "<< parameters.platform >>" >> $HOME/workspace/tested-platforms/<< parameters.os >>
workflows:
build-and-test:
jobs:
Expand Down Expand Up @@ -331,6 +365,13 @@ workflows:
platform: ["photon", "p1", "electron", "argon", "boron", "bsom", "b5som", "tracker"]
requires:
- setup-workspace
- validate-toolchain-platforms:
<<: *tag_filters
requires:
- setup-workspace
- build-for-windows
- build-for-ubuntu
- build-for-darwin
- build-and-test:
<<: *tag_filters
context:
Expand Down

0 comments on commit 9cb91a5

Please sign in to comment.