diff --git a/.circleci/config.yml b/.circleci/config.yml index 25dad49..9927148 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -49,23 +49,18 @@ build: &build command: | cd $TOOLCHAIN mix compile + - run: + name: "Create artifact dir" + command: mkdir -p /home/nerves/deploy/toolchain - run: name: Create artifact command: | cd $TOOLCHAIN - mix nerves.artifact $TOOLCHAIN - - run: - name: "Create artifact dir" - command: mkdir -p /home/nerves/deploy/toolchain + mix nerves.artifact $TOOLCHAIN --path /home/nerves/deploy/toolchain - save_cache: key: nerves/dl/{{ checksum ".toolchain" }}/{{ checksum ".build_os" }}-{{ .Branch }} paths: - $HOME/.nerves/dl - - run: - name: "Copy Artifacts" - command: | - cd $TOOLCHAIN - cp ${TOOLCHAIN}*.tar.xz /home/nerves/deploy/toolchain - store_artifacts: path: /home/nerves/deploy/toolchain destination: toolchain