Added India sfID #9
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: | |
push: | |
tags: | |
- "20*" | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: configure | |
run: cmake . | |
- name: build | |
run: cmake --build . --config Release | |
- name: build-musl | |
if: runner.os == 'Linux' | |
run: | | |
rm CMakeCache.txt | |
mv AtomicParsley AtomicParsleyLinux | |
docker run --rm -v "$(pwd):/mnt" -w '/mnt' alpine sh -c "\ | |
apk add cmake build-base linux-headers zlib-dev && \ | |
cmake . && \ | |
cmake --build . --config Release \ | |
" | |
- name: zip | |
if: runner.os == 'macOS' | |
run: zip AtomicParsleyMacOS.zip AtomicParsley | |
- name: zip | |
if: runner.os == 'Linux' | |
run: | | |
zip AtomicParsleyAlpine.zip AtomicParsley | |
mv AtomicParsleyLinux AtomicParsley | |
zip AtomicParsleyLinux.zip AtomicParsley | |
- name: zip | |
if: runner.os == 'Windows' | |
run: | | |
pushd Release | |
7z a -tzip ../AtomicParsleyWindows.zip AtomicParsley.exe | |
popd | |
- name: build-windows-x86 | |
if: runner.os == 'Windows' | |
run: | | |
rm CMakeCache.txt | |
cmake -S . -B build-windows-x86 -A Win32 | |
cmake --build build-windows-x86 --config Release | |
pushd build-windows-x86/Release | |
7z a -tzip ../../AtomicParsleyWindowsX86.zip AtomicParsley.exe | |
popd | |
- name: "Upload to Tagged Release" | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: "AtomicParsley*.zip" | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |