ci: add build job #8
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: Linux | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
tags: [ '*' ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build_hipo: | |
name: Build HIPO | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout hipo | |
uses: actions/checkout@v4 | |
with: | |
repository: gavalian/hipo | |
- name: build | |
run: | | |
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=hipo | |
cmake --build build -j2 | |
cmake --install build | |
- name: tar | |
run: tar czvf hipo{.tar.gz,} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: build | |
retention-days: 1 | |
path: ./*.tar.gz | |
build_iguana: | |
name: Build iguana | |
# needs: [ build_hipo ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup meson | |
run: python -m pip install meson ninja | |
- name: summarize dependencies | |
run: | | |
echo '### Dependencies' >> $GITHUB_STEP_SUMMARY | |
echo '| Dependency | Version |' >> $GITHUB_STEP_SUMMARY | |
echo '| --- | --- |' >> $GITHUB_STEP_SUMMARY | |
for dep in python ruby meson ninja ; do | |
echo "| \`$dep\` | $($dep --version) |" >> $GITHUB_STEP_SUMMARY | |
done |