Skip to content

Add Process.run - subprocess running #809

Add Process.run - subprocess running

Add Process.run - subprocess running #809

Workflow file for this run

name: C/C++ CI
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: build-test
shell: bash
run: |
cmake -B build -S .
cmake --build build --target all --target test --target stdlib_test
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: build-test
run: |
cmake -B build -S . -DCMAKE_SYSTEM_VERSION="10.0.20348.0"
cmake --build build --target ALL_BUILD --target RUN_TESTS
# - run: cmake --build build --target ALL_BUILD --target RUN_TESTS --target stdlib_test
build-release-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: build
shell: bash
run: |
cmake -B release -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_VERSION="10.0.20348.0" -DVERSION=${{ github.ref_name }}
cmake --build release --target ALL_BUILD --config Release
- name: Create-Archive
shell: powershell
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
mkdir output
cp release\comet\Release\comet.exe output
cp stdlib\comet\*.cmt output
Compress-Archive -Path output\* -DestinationPath comet_windows_${{ github.ref_name }}.zip
- name: Release-Windows
uses: softprops/[email protected]
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
files: comet_windows_${{ github.ref_name }}.zip
build-release-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: build
shell: bash
run: |
cmake -B release -S . -DCMAKE_BUILD_TYPE=Release -DVERSION=${{ github.ref_name }}
cmake --build release --target all
- name: Create-Archive
if: ${{ startsWith(github.ref, 'refs/tags/') }}
shell: bash
run: zip -j comet_linux_${{ github.ref_name }}.zip release/comet/comet stdlib/comet/*.cmt
- name: Release-Linux
uses: softprops/[email protected]
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
files: comet_linux_${{ github.ref_name }}.zip