Skip to content

Rename to Noor.framework #4

Rename to Noor.framework

Rename to Noor.framework #4

Workflow file for this run

name: Build native deps
on:
push:
paths:
- 'stages/**'
- 'patches/**'
- 'scripts/**'
- 'Dockerfile'
- '.github/workflows/release.yml'
branches:
- main
pull_request:
paths:
- 'stages/**'
- 'patches/**'
- 'scripts/**'
- 'Dockerfile'
- '.github/workflows/release.yml'
workflow_dispatch:
# Cancel previous runs of the same workflow on the same branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-native-deps:
strategy:
matrix:
settings:
- target: x86_64-darwin-apple
- target: aarch64-darwin-apple
- target: x86_64-windows-gnu
- target: aarch64-windows-gnu
- target: x86_64-linux-gnu
- target: aarch64-linux-gnu
- target: x86_64-linux-musl
- target: aarch64-linux-musl
name: Build native-deps ${{ matrix.settings.target }}
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
install: true
platforms: linux/amd64
driver-opts: |
image=moby/buildkit:master
network=host
- name: Build native-deps
run: |
set -euxo pipefail
docker build --no-cache --build-arg TARGET=${{ matrix.settings.target }} --build-arg VERSION="$(echo ${{ github.ref }} | sed -E 's/refs\/tags\/v?//g' | sed -E 's/[^0-9.]//g')" -o . .
mv out/src.tar.xz ./native-deps-${{ matrix.settings.target }}-src.tar.xz
export XZ_OPT='-T0 -7'
tar -cJf "native-deps-${{ matrix.settings.target }}.tar.xz" -C out .
- name: Publish native-deps
uses: actions/upload-artifact@v4
with:
name: native-deps-${{ matrix.settings.target }}
path: native-deps-${{ matrix.settings.target }}.tar.xz
if-no-files-found: error
- name: Publish built source
uses: actions/upload-artifact@v4
with:
name: native-deps-${{ matrix.settings.target }}-src
path: native-deps-${{ matrix.settings.target }}-src.tar.xz
if-no-files-found: warn
release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
name: Create Release
needs: build-native-deps
permissions:
contents: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Create Release
uses: softprops/action-gh-release@v1
with:
draft: true
files: '*/**'