Skip to content

Commit

Permalink
update Ubuntu CI/CD flow: gcc and clang build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-naumov committed May 2, 2024
1 parent 7ae2771 commit 7867c69
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/ubuntu_22_04_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Ubuntu 22.04 x86_64

on:
push:
branches: [ main, screen-v4 ]
branches: [ main ]
pull_request:
branches: [ main, screen-v4 ]
branches: [ main ]


env:
Expand All @@ -28,6 +28,7 @@ jobs:
autoconf --version
make -v
gcc -v
clang -v
dpkg -l libpam0g-dev
- name: Install libpam0g-dev
Expand All @@ -38,12 +39,30 @@ jobs:
working-directory: ${{github.workspace}}/src
run: ./autogen.sh

- name: configure
- name: gcc configure
shell: bash
working-directory: ${{github.workspace}}/src
run: ./configure CFLAGS="-Wall -DDEBUG"
run: cc=gcc ./configure CFLAGS="-Wall -DDEBUG"

- name: make
- name: gcc build
shell: bash
working-directory: ${{github.workspace}}/src
run: make

- name: test
shell: bash
working-directory: ${{github.workspace}}/src
run: |
./screen -v
./screen -ls
make clean
- name: clang configure
shell: bash
working-directory: ${{github.workspace}}/src
run: cc=clang ./configure CFLAGS="-Wall -DDEBUG"

- name: clang build
shell: bash
working-directory: ${{github.workspace}}/src
run: make
Expand All @@ -54,3 +73,4 @@ jobs:
run: |
./screen -v
./screen --help
./screen -ls

0 comments on commit 7867c69

Please sign in to comment.