Skip to content

Updating workflows #279

Updating workflows

Updating workflows #279

Workflow file for this run

name: build
env:
GITHUB_REGISTRY: "ghcr.io"
GITHUB_OWNER: "mjovanc"
GITHUB_DOCKER_IMAGE: "hugin-cli"
BUILD_TYPE: Release
on:
push:
branches:
- master
jobs:
build:
name: "Build: ${{ matrix.config.name }} / ${{ matrix.config.architecture }}"
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: true
matrix:
config:
- {
name: "Ubuntu Latest GCC",
artifact: "hugin-ubuntu-x64",
os: ubuntu-22.04,
cc: "gcc",
architecture: x64,
}
- {
name: "macOS M1 Latest Clang",
artifact: "hugin-macos-m1",
os: macos-12.0,
cc: "clang",
architecture: arm64,
}
- {
name: "macOS Latest Clang",
artifact: "hugin-macos-x64",
os: macos-12.0,
cc: "clang",
architecture: x64,
}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
# Ubuntu 22.04
- name: Install dependencies
if: matrix.config.name == 'Ubuntu Latest GCC'
run: sudo apt-get -y install libssl-dev
- name: Build Ubuntu Target
if: matrix.config.name == 'Ubuntu Latest GCC'
run: make
- name: Upload Ubuntu Artifact
if: matrix.config.name == 'Ubuntu Latest GCC'
uses: actions/upload-artifact@v3
with:
name: hugin-ubuntu-x64
path: |
build/Hugin
resources/icon.png
resources/readme.html
resources/hugin-cli.desktop
install.sh
# macOS M1
- name: Install dependencies
if: matrix.config.os == 'macos-12.0' && matrix.config.architecture == 'arm64'
run: brew install openssl@1.1
- name: Build macOS M1 Target
if: matrix.config.os == 'macos-12.0' && matrix.config.architecture == 'arm64'
run: make
- name: Upload macOS M1 Artifact
if: matrix.config.os == 'macos-12.0' && matrix.config.architecture == 'arm64'
uses: actions/upload-artifact@v3
with:
name: hugin-macos-m1
path: |
build/Hugin
resources/icon.png
resources/readme.html
resources/hugin-cli.desktop
install.sh
# macOS 64-bit
- name: Install dependencies
if: matrix.config.os == 'macos-12.0' && matrix.config.architecture == 'x64'
run: brew install openssl@1.1
- name: Build macOS 64-bit Target
if: matrix.config.os == 'macos-12.0' && matrix.config.architecture == 'x64'
run: make
- name: Upload macOS 64-bit Artifact
if: matrix.config.os == 'macos-12.0'
uses: actions/upload-artifact@v3
with:
name: hugin-macos-x64
path: |
build/Hugin
resources/icon.png
resources/readme.html
resources/hugin-cli.desktop
install.sh