Skip to content

Commit

Permalink
lets see if this works
Browse files Browse the repository at this point in the history
  • Loading branch information
swarnavaghosh04 committed Sep 15, 2024
1 parent d039cfb commit 80cfea2
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 28 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches:
- master
- devel
pull_request:
branches:
- master

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
publish:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout Repository
uses: actions/checkout@v4
- name: Download Dependencies
run: |
sudo apt update
sudo apt install cmake gnuradio xvfb libsndfile1-dev doxygen
- name: Configure CMake
run: |
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
- name: Configure CMake
run: |
cd build
cmake --build . --target doxygen_target
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v3
with:
path: "build/docs/doxygen/html"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

54 changes: 26 additions & 28 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,29 @@ jobs:
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Download Dependencies
run: |
sudo add-apt-repository ppa:gnuradio/gnuradio-releases
sudo apt update
sudo apt install cmake gnuradio xvfb libsndfile1-dev
- name: Configure CMake
run: |
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest .
- name: Create Package
working-directory: ${{github.workspace}}/build
run: cpack -G DEB
- name: Install Package
working-directory: ${{github.workspace}}/build
run: sudo dpkg -i *.deb
- name: Test Installed Package
working-directory: ${{github.workspace}}/examples
run: |
grcc frame_deframe.grc
{ sleep 3; echo \n; } | python frame_deframe.py
- name: Checkout Repository
uses: actions/checkout@v3
- name: Download Dependencies
run: |
sudo apt update
sudo apt install cmake gnuradio xvfb libsndfile1-dev doxygem
- name: Configure CMake
run: |
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest .
- name: Create Package
working-directory: ${{github.workspace}}/build
run: cpack -G DEB
- name: Install Package
working-directory: ${{github.workspace}}/build
run: sudo dpkg -i *.deb
- name: Test Installed Package
working-directory: ${{github.workspace}}/examples
run: |
grcc frame_deframe.grc
{ sleep 3; echo \n; } | python frame_deframe.py

0 comments on commit 80cfea2

Please sign in to comment.