Skip to content

try new action

try new action #70

Workflow file for this run

name: C/C++ CI
on:
schedule:
- cron: "0 22 3 * 5" # run test once a month
push:
branches: [master]
paths:
- configure.ac
- 'src/**'
- 'include/**'
- '.github/workflows/*'
pull_request:
branches: [master]
jobs:
notification:
runs-on: ubuntu-latest
name: Notifications
steps:
- name: set Nick
uses: LanguageMachines/ticcactions/irc_nick@v1
- name: IRC notification of starting the builds
uses:
with:
server: irc.uvt.nl
channel: '#gitlama'
nickname: GitHub
message: >
${{ github.actor }} started a build of unicodetest
[${{ github.ref_name }}]
"${{ github.event.head_commit.message }}"
build:
runs-on: ${{ matrix.os }}
needs: notification
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
compiler: [g++-12, clang++]
steps:
- name: exclude Mac-OS with g++
shell: bash
if: ${{ matrix.os == 'macos-latest' && matrix.compiler == 'g++-12' }}
run: |
echo "action_status=skip" >> $GITHUB_ENV
echo "action_details='c++ library issues'" >> $GITHUB_ENV
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/[email protected]
- uses: LanguageMachines/ticcactions/cpp-build-env@v1
- uses: LanguageMachines/ticcactions/cpp-dependencies@v1
- uses: LanguageMachines/ticcactions/cpp-safe-build@v1
- name: show status
shell: bash
run: echo ACTION_STATUS=${{ env.action_status }}
- id: compiler
shell: bash
run: |
cid=$(echo ${{matrix.compiler}} | cut -d\+ -f1)
if [ "$cid" == "g" ]
then
cid=$cid"cc"
fi
echo "cid=$cid" >> $GITHUB_ENV
- name: Notify IRC of results
uses: LanguageMachines/ticcactions/irc_status@v1
with:
module: actiontests
branch: ${{ github.ref_name }}
nickname: ${{ env.nick }}
status: ${{ env.action_status }}
details: ${{ env.action_details }}