Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Linux Build Check
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build-linux:
name: Ubuntu Build (PortAudio v19.6)
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Cache APT Packages
uses: actions/cache@v4
with:
path: /var/cache/apt/archives
key: ${{ runner.os }}-apt-${{ hashFiles('.github/workflows/linux-build.yml') }}
restore-keys: |
${{ runner.os }}-apt-

- name: Install System Dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build \
portaudio19-dev libasound2-dev \
clang libc++-dev libc++abi-dev ccache

- name: Setup ccache
uses: actions/cache@v4
with:
path: ~/.cache/ccache
key: ${{ runner.os }}-ccache-${{ hashFiles('**/*.c', '**/*.cpp', '**/*.h') }}
restore-keys: |
${{ runner.os }}-ccache-

- name: Configure CMake
# Ninja is used for faster build orchestration than standard Make.
run: >
cmake -B build -G Ninja
-DCMAKE_C_COMPILER_LAUNCHER=ccache
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++
-DCMAKE_BUILD_TYPE=Release

- name: Build Project
run: cmake --build build --config Release

- name: Show ccache stats
run: ccache -s
8 changes: 4 additions & 4 deletions dev/tabedit/columns5.c
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ void format_vals(void)
int n, m, OK = 1;
double d = (double)cnt/(double)ifactor;
int rowcnt = cnt/ifactor;
char ctemp[64];
char ctemp[64] = {0};

errstr[0] = ENDOFSTR;
if(d > (double)rowcnt)
Expand Down Expand Up @@ -998,7 +998,7 @@ void column_format_vals(void)

double d = (double)cnt/(double)ifactor;
int rowcnt = cnt/ifactor;
char ctemp[64];
char ctemp[64] = {0};
errstr[0] = ENDOFSTR;
if(d > (double)rowcnt)
rowcnt++;
Expand Down Expand Up @@ -2865,7 +2865,7 @@ void format_strs(void)
int n, m, OK = 1;
double d = (double)stringscnt/(double)ifactor;
int rowcnt = stringscnt/ifactor;
char ctemp[64];
char ctemp[64] = {0};
errstr[0] = ENDOFSTR;
if(d > (double)rowcnt)
rowcnt++;
Expand Down Expand Up @@ -2896,7 +2896,7 @@ void column_format_strs(void)

double d = (double)stringscnt/(double)ifactor;
int rowcnt = stringscnt/ifactor;
char ctemp[64];
char ctemp[64] = {0};
errstr[0] = ENDOFSTR;
if(d > (double)rowcnt)
rowcnt++;
Expand Down