Release #14
Workflow file for this run
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: Release | |
on: | |
release: | |
types: [ "created" ] | |
permissions: | |
contents: write | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
macos-x86_64: | |
name: macOS x86_64 | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download MacPorts | |
uses: robinraju/[email protected] | |
with: | |
repository: "macports/macports-base" | |
latest: true | |
fileName: "*-12-Monterey.pkg" | |
out-file-path: "/tmp" | |
- name: Install MacPorts | |
run: sudo installer -pkg /tmp/MacPorts-*.pkg -target / | |
- name: Add MacPorts to PATH | |
run: echo "/opt/local/bin:/opt/local/sbin" >> $GITHUB_PATH | |
- name: Install CMake and GCC | |
run: sudo port install cmake gcc12 gcc_select | |
- name: Configure GCC | |
run: sudo port select --set gcc mp-gcc12 | |
- name: Set Parallel Level | |
run: echo "CMAKE_BUILD_PARALLEL_LEVEL=$(sysctl -n hw.logicalcpu)" >> $GITHUB_ENV | |
- name: Configure CMake | |
run: | | |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ | |
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/build/dist/arm-webos-linux-gnueabi_sdk-buildroot | |
env: | |
CC: '/opt/local/bin/gcc' | |
CXX: '/opt/local/bin/g++' | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- name: Install | |
run: cmake --install ${{github.workspace}}/build | |
- name: Make Tarball | |
run: | | |
cmake -E tar cjvf arm-webos-linux-gnueabi_sdk-buildroot_darwin-x86_64.tar.bz2 \ | |
arm-webos-linux-gnueabi_sdk-buildroot | |
working-directory: ${{github.workspace}}/build/dist | |
- name: Create Release | |
uses: ncipollo/release-action@v1 | |
with: | |
name: Release ${{ steps.tagName.outputs.tag }} | |
allowUpdates: true | |
omitNameDuringUpdate: true | |
omitBodyDuringUpdate: true | |
omitPrereleaseDuringUpdate: true | |
artifacts: ${{github.workspace}}/build/dist/arm-webos-linux-gnueabi_sdk-buildroot_darwin-x86_64.tar.bz2 | |
linux-arm64: | |
name: Linux ARM64 | |
runs-on: debian-arm64-latest | |
env: | |
LANG: 'en_US.UTF-8' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure CMake | |
run: | | |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ | |
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/build/dist/arm-webos-linux-gnueabi_sdk-buildroot | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- name: Install | |
run: cmake --install ${{github.workspace}}/build | |
- name: Make Tarball | |
run: | | |
cmake -E tar cjvf arm-webos-linux-gnueabi_sdk-buildroot_linux-aarch64.tar.bz2 \ | |
arm-webos-linux-gnueabi_sdk-buildroot | |
working-directory: ${{github.workspace}}/build/dist | |
- name: Create Release | |
uses: ncipollo/release-action@v1 | |
with: | |
name: Release ${{ steps.tagName.outputs.tag }} | |
allowUpdates: true | |
omitNameDuringUpdate: true | |
omitBodyDuringUpdate: true | |
omitPrereleaseDuringUpdate: true | |
artifacts: ${{github.workspace}}/build/dist/arm-webos-linux-gnueabi_sdk-buildroot_linux-aarch64.tar.bz2 |