Skip to content

Merge pull request #241 from chaoticgd/fix_architecture_names_2 #102

Merge pull request #241 from chaoticgd/fix_architecture_names_2

Merge pull request #241 from chaoticgd/fix_architecture_names_2 #102

Workflow file for this run

name: Unstable
on:
push:
branches: [ "main" ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ${{ matrix.sys.os }}
strategy:
matrix:
sys:
- { name: linux-glibc, os: ubuntu-latest, shell: bash, osx_architectures: '' }
- { name: linux-musl, os: ubuntu-latest, shell: 'alpine.sh --root {0}', osx_architectures: '' }
- { name: windows, os: windows-latest, shell: pwsh, osx_architectures: '' }
- { name: mac, os: macos-latest, shell: bash, osx_architectures: 'arm64' }
- { name: mac, os: macos-latest, shell: bash, osx_architectures: 'x86_64' }
defaults:
run:
shell: ${{ matrix.sys.shell }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Setup latest Alpine Linux
uses: jirutka/setup-alpine@39d2d96fa8e4b713be89c0239a5c3b9a0f49838d
if: ${{ matrix.sys.name == 'linux-musl' }}
with:
arch: x86_64
packages: >
make
cmake
libstdc++
g++
musl-dev
git
- name: Git Nonsense
if: ${{ matrix.sys.os == 'ubuntu-latest' }}
run: git config --global --add safe.directory ${{github.workspace}}
- name: Configure CMake
env:
USE_MUSL_LIBC: ${{ matrix.sys.name == 'linux-musl' }}
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_OSX_ARCHITECTURES=${{matrix.sys.osx_architectures}} -DUSE_MUSL_LIBC=${{env.USE_MUSL_LIBC}} -DZIP_RELEASE=1
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Release
uses: ncipollo/release-action@a2e71bdd4e7dab70ca26a852f29600c98b33153e
with:
name: ${{ github.ref }}
tag: 'unstable'
artifacts: build/ccc_*.zip
allowUpdates: true
draft: false
omitBodyDuringUpdate: true
omitDraftDuringUpdate: true
omitNameDuringUpdate: true
omitPrereleaseDuringUpdate: true
prerelease: true
replacesArtifacts: false
skipIfReleaseExists: false