Update Workflows #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | ||
permissions: | ||
contents: write | ||
on: | ||
push: | ||
tags: | ||
<<<<<<< HEAD | ||
- "v*.*.*" | ||
- "v*.*.*-*" | ||
jobs: | ||
# Build the project to ensure it works. Also to get the binaries. | ||
build-microzig: | ||
uses: ./.github/workflows/build-base.yml | ||
concurrency: | ||
group: build | ||
cancel-in-progress: true | ||
with: | ||
zig-version: ${{ vars.MZ_TARGET_ZIG_VERSION }} | ||
get-submodules: true | ||
is-packaged: true | ||
target-os: macOS | ||
github-artifact-name: microzig-build | ||
artifact-output-path: boxzer-out | ||
ref: ${{ github.ref_name }} | ||
secrets: | ||
downloads-url: ${{ secrets.BOXZER_DOWNLOADS_URL }} | ||
# Alters the boxzer output to match what we desire | ||
alter-microzig-artifact: | ||
uses: ./.github/workflows/alter-microzig-artifact.yml | ||
needs: build-microzig | ||
with: | ||
in-gh-artifact-name: microzig-build | ||
out-gh-artifact-name: microzig-alt | ||
zig-version: ${{ vars.MZ_TARGET_ZIG_VERSION }} | ||
microzig-version: ${{ needs.build-microzig.outputs.version }} | ||
# Publish microzig | ||
publish-microzig: | ||
uses: ./.github/workflows/publish-base.yml | ||
needs: alter-microzig-artifact | ||
======= | ||
- "microzig-*.*.*" | ||
jobs: | ||
build-microzig: | ||
uses: ./.github/workflows/build-zig-base.yml | ||
with: | ||
zig-version: 0.13.0 | ||
get-submodules: true | ||
sparse-checkout-patterns: | | ||
build.zig* | ||
tools/** | ||
core/** | ||
build/** | ||
bsp/** | ||
examples/** | ||
is-packaged: true | ||
github-artifact-name: microzig | ||
artifact-output-paths: boxzer-out | ||
secrets: | ||
downloads-url: ${{ secrets.DOWNLOADS_URL }} | ||
publish-microzig: | ||
uses: ./.github/workflows/publish-base.yml | ||
>>>>>>> ea386ec (ci: implement build pipeline and patch to zig master) | ||
concurrency: | ||
group: publish | ||
cancel-in-progress: false | ||
with: | ||
tag: ${{ github.ref_name }} | ||
<<<<<<< HEAD | ||
github-artifact-name: microzig-alt | ||
source-path: / | ||
secrets: | ||
target-path: ${{ secrets.DEPLOY_MZ_ROOT_DATA_PATH }} | ||
ssh-key: ${{ secrets.DEPLOY_MZ_PRIVATE_KEY }} | ||
host: ${{ secrets.DEPLOY_MZ_HOST }} | ||
port: ${{ secrets.DEPLOY_MZ_PORT }} | ||
user: ${{ secrets.DEPLOY_MZ_USER }} | ||
======= | ||
artifact: microzig | ||
github-artifact-name: microzig-build | ||
artifact-target-name: "." | ||
source: boxzer-out/ | ||
secrets: | ||
ssh-key: ${{ secrets.DEPLOY_PRIVATE_KEY }} | ||
host: ${{ secrets.DEPLOY_HOST }} | ||
port: ${{ secrets.DEPLOY_PORT }} | ||
user: ${{ secrets.DEPLOY_USER }} | ||
publish-microzig-regz: | ||
concurrency: | ||
group: publish | ||
cancel-in-progress: false | ||
uses: ./.github/workflows/publish-base.yml | ||
with: | ||
tag: ${{ github.ref_name }} | ||
artifact: regz | ||
github-artifact-name: microzig-build | ||
artifact-target-name: "tools/regz" | ||
source: zig-out/ | ||
secrets: | ||
ssh-key: ${{ secrets.DEPLOY_PRIVATE_KEY }} | ||
host: ${{ secrets.DEPLOY_HOST }} | ||
port: ${{ secrets.DEPLOY_PORT }} | ||
user: ${{ secrets.DEPLOY_USER }} | ||
publish-microzig-uf2: | ||
concurrency: | ||
group: publish | ||
cancel-in-progress: false | ||
uses: ./.github/workflows/publish-base.yml | ||
with: | ||
tag: ${{ github.ref_name }} | ||
artifact: regz | ||
github-artifact-name: microzig-build | ||
artifact-target-name: "tools/uf2" | ||
source: zig-out/ | ||
secrets: | ||
ssh-key: ${{ secrets.DEPLOY_PRIVATE_KEY }} | ||
host: ${{ secrets.DEPLOY_HOST }} | ||
port: ${{ secrets.DEPLOY_PORT }} | ||
user: ${{ secrets.DEPLOY_USER }} | ||
>>>>>>> ea386ec (ci: implement build pipeline and patch to zig master) |