Skip to content

Fix zlib

Fix zlib #32

Workflow file for this run

name: 'Build'
on:
push:
branches:
- dev
tags:
- '*'
jobs:
build-linux-x86:
runs-on: [self-hosted, FlipperZeroToolchain, Linux, X64]
steps:
- name: 'Wipe workspace'
run: find ./ -mount -maxdepth 1 -exec rm -rf {} \;
- name: 'Checkout code'
uses: actions/checkout@v4
with:
fetch-depth: 1
ref: ${{ github.event.pull_request.head.sha }}
- name: 'Set image tag and name'
id: tag
run: |
IMAGE_TAG="0"
if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
REF=${{ github.ref }};
TAG_FULL=${REF#refs/*/};
IMAGE_TAG=${TAG_FULL//\//_};
fi
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
echo "image_tag=${IMAGE_TAG}" >> $GITHUB_OUTPUT
- name: 'Build linux toolchain x86_64'
run: |
docker build -t flipperzero-toolchain-linux:${IMAGE_TAG} -f linux/Dockerfile-x86_64 linux
- name: 'Bundle and upload linux toolchain x86_64'
#if: ${{ steps.tag.outputs.image_tag != '0' }}
run: |
docker run --rm \
-e "TOOLCHAIN_VERSION=$IMAGE_TAG" \
-e "INDEXER_URL=${{ secrets.INDEXER_URL }}" \
-e "INDEXER_TOKEN=${{ secrets.INDEXER_TOKEN }}" \
flipperzero-toolchain-linux:${IMAGE_TAG} \
/usr/bin/bundle_upload.sh
build-linux-aarch64:
runs-on: [self-hosted, macOS, X64, FlipperZeroToolchain]
steps:
- name: 'Wipe workspace'
run: find ./ -mount -maxdepth 1 -exec rm -rf {} \;
- name: 'Checkout code'
uses: actions/checkout@v4
with:
fetch-depth: 1
ref: ${{ github.event.pull_request.head.sha }}
- name: 'Set image tag and name'
id: tag
run: |
IMAGE_TAG="0"
if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
REF=${{ github.ref }};
TAG_FULL=${REF#refs/*/};
IMAGE_TAG=${TAG_FULL//\//_};
fi
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
echo "image_tag=${IMAGE_TAG}" >> $GITHUB_OUTPUT
- name: 'Build linux toolchain aarch64'
run: |
docker build --platform linux/arm64 \
-t flipperzero-toolchain-linux:${IMAGE_TAG} \
-f linux/Dockerfile-aarch64 linux
- name: 'Bundle and upload linux toolchain aarch64'
#if: ${{ steps.tag.outputs.image_tag != '0' }}
run: |
docker run --rm \
-e "TOOLCHAIN_VERSION=$IMAGE_TAG" \
-e "INDEXER_URL=${{ secrets.INDEXER_URL }}" \
-e "INDEXER_TOKEN=${{ secrets.INDEXER_TOKEN }}" \
flipperzero-toolchain-linux:${IMAGE_TAG} \
/usr/bin/bundle_upload.sh
build-windows:
runs-on: [self-hosted, FlipperZeroToolchain, Linux, X64]
steps:
- name: 'Wipe workspace'
run: find ./ -mount -maxdepth 1 -exec rm -rf {} \;
- name: 'Checkout code'
uses: actions/checkout@v4
with:
fetch-depth: 1
ref: ${{ github.event.pull_request.head.sha }}
- name: 'Set image tag and name'
id: tag
run: |
IMAGE_TAG="0"
if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
REF=${{ github.ref }};
TAG_FULL=${REF#refs/*/};
IMAGE_TAG=${TAG_FULL//\//_};
fi
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
echo "image_tag=${IMAGE_TAG}" >> $GITHUB_OUTPUT
- name: 'Build windows toolchain'
run: |
docker build -t flipperzero-toolchain-windows:${IMAGE_TAG} windows
- name: 'Bundle and upload windows toolchain'
#if: ${{ steps.tag.outputs.image_tag != '0' }}
run: |
docker run --rm \
-e "TOOLCHAIN_VERSION=$IMAGE_TAG" \
-e "INDEXER_URL=${{ secrets.INDEXER_URL }}" \
-e "INDEXER_TOKEN=${{ secrets.INDEXER_TOKEN }}" \
flipperzero-toolchain-windows:${IMAGE_TAG} \
/usr/bin/bundle_upload.sh
build-mac:
runs-on: [self-hosted, macOS, X64, FlipperZeroToolchainChmocker]
steps:
- name: 'Wipe workspace'
run: find ./ -mount -maxdepth 1 -exec rm -rf {} \;
- name: 'Checkout code'
uses: actions/checkout@v4
with:
fetch-depth: 1
ref: ${{ github.event.pull_request.head.sha }}
- name: 'Set image tag and name'
id: tag
run: |
IMAGE_TAG="0"
if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
REF=${{ github.ref }};
TAG_FULL=${REF#refs/*/};
IMAGE_TAG=${TAG_FULL//\//_};
fi
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
echo "image_tag=${IMAGE_TAG}" >> $GITHUB_OUTPUT
#- name: 'Build mac toolchain'
# run: |
# sudo chmocker build -t flipperzero-toolchain-mac:${IMAGE_TAG} darwin
- name: 'Bundle and upload mac toolchain'
#if: ${{ steps.tag.outputs.image_tag != '0' }}
run: |
sudo chmocker run --rm \
-e "TOOLCHAIN_VERSION=$IMAGE_TAG" \
-e "INDEXER_URL=${{ secrets.INDEXER_URL }}" \
-e "INDEXER_TOKEN=${{ secrets.INDEXER_TOKEN }}" \
flipperzero-toolchain-mac:${IMAGE_TAG} \
/usr/bin/bundle_upload.sh