BlueCyro is building libheif #18
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: Build libheif | |
run-name: ${{ github.actor }} is building libheif | |
on: | |
push: | |
branches: | |
- cyro/feat/libheif-build-actions | |
jobs: | |
Build-Linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- run: echo "${{ github.repository }} cloned" | |
- name: "[Debug] List directory contents" | |
run: ls -lah | |
- name: Make build directory | |
run: mkdir build | |
- name: Create output directory variable | |
id: buildoutput | |
shell: bash | |
run: echo "build-output-dir='${{ github.workspace }}/build'" >> "$GITHUB_OUTPUT" | |
- name: Configure CMake | |
working-directory: ${{ steps.buildoutput.outputs.build-output-dir }} | |
run: cmake --preset=release-noplugins .. | |
- name: Build libheif | |
working-directory: ${{ steps.buildoutput.outputs.build-output-dir }} | |
run: make | |
- name: "[Debug] List build directory contents again" | |
working-directory: ${{ steps.buildoutput.outputs.build-output-dir }} | |
run: ls -lah | |
- name: "[Debug] List libheif directory" | |
working-directory: ${{ steps.buildoutput.outputs.build-output-dir }} | |
run: "ls -lah ./libheif" | |
- name: Archive and put a pretty bow on it | |
uses: actions/upload-artifact@v4 | |
with: | |
name: libheif | |
path: ${{ steps.buildoutput.outputs.build-output-dir }}/libheif | |
Build-Windows: | |
runs-on: windows-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- run: echo "${{ github.repository }} cloned" | |
- name: "[Debug] List directory contents" | |
run: dir | |
- name: Make build directory | |
run: mkdir build | |
- name: Create output directory variable | |
id: buildoutput | |
shell: bash | |
run: echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" | |
- name: Configure CMake | |
working-directory: ${{ steps.buildoutput.outputs.build-output-dir }} | |
run: cmake --preset=release-noplugins .. | |
- name: Build libheif | |
working-directory: ${{ steps.buildoutput.outputs.build-output-dir }} | |
run: make | |
- name: "[Debug] List build directory contents again" | |
working-directory: ${{ steps.buildoutput.outputs.build-output-dir }} | |
run: dir | |
- name: "[Debug] List libheif directory" | |
working-directory: ${{ steps.buildoutput.outputs.build-output-dir }} | |
run: dir "./libheif" | |
- name: Archive and put a pretty bow on it | |
uses: actions/upload-artifact@v4 | |
with: | |
name: libheif | |
path: ${{ steps.buildoutput.outputs.build-output-dir }}/libheif | |