43 lines
1007 B
YAML
43 lines
1007 B
YAML
name: MacOS build
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: macos-11
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
fetch-depth: 0
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
brew install \
|
|
gtkmm3 \
|
|
gtk-mac-integration \
|
|
ninja
|
|
|
|
# Workaround for now, we create our own features.h file (macos image either is missing this file, or some include folder is missing during the build)
|
|
- name: Add `features.h`
|
|
run: |
|
|
cat >> src/features.h << EOF
|
|
#pragma once
|
|
/*** @file features.h*
|
|
* @brief Synonym for `<sys/cdefs.h>` for source compatibility with glibc.
|
|
* */
|
|
#include <sys/cdefs.h>
|
|
EOF
|
|
|
|
- name: Build
|
|
run: ./scripts/build-macos-prod.sh
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: macOS-dmg-package
|
|
path: build_prod_macos/libreweb-browser-v*.dmg
|
|
|