Skip to content

Update c-cpp.yml

Update c-cpp.yml #4

Workflow file for this run

name: Build and Release
on:
push:
tags:
- [published]
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Install build tools
run: |
sudo apt-get update
sudo apt-get install -y build-essential
- name: Build
run: make
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref_name }}
release_name: "Release ${{ github.ref_name }}"
draft: false
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./rapl_monitor
asset_name: rapl_monitor
asset_content_type: application/octet-stream