mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Merge pull request #1497 from ailin-nemui/github-workflow-error
Slightly improve GitHub workflow
This commit is contained in:
commit
2a1291f26f
65
.github/workflows/check.yml
vendored
65
.github/workflows/check.yml
vendored
@ -93,9 +93,66 @@ jobs:
|
||||
^set -clear log_day_changed
|
||||
^set -clear log_open_string
|
||||
^set log_timestamp *
|
||||
^window log on' > irssi-test/startup
|
||||
echo load perl >> irssi-test/startup
|
||||
echo load proxy >> irssi-test/startup
|
||||
echo ^quit >> irssi-test/startup
|
||||
^window log on
|
||||
load irc
|
||||
load dcc
|
||||
load flood
|
||||
load notifylist
|
||||
load perl
|
||||
load otr
|
||||
load proxy
|
||||
^quit' > irssi-test/startup
|
||||
irssi-build/bin/irssi --home irssi-test | perl -Mutf8 -C ~/render.pl
|
||||
cat irc.log.*
|
||||
annotation-warnings:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
env:
|
||||
CC: clang
|
||||
steps:
|
||||
- name: prepare required software
|
||||
run: |
|
||||
sudo apt update && sudo apt install $apt_build_deps
|
||||
- uses: actions/checkout@main
|
||||
- name: Setup local annotations
|
||||
uses: irssi-import/actions-irssi/problem-matchers@master
|
||||
- name: set PATH
|
||||
run: |
|
||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||
- name: prepare required software
|
||||
env:
|
||||
meson_ver: ${{ matrix.meson_ver }}
|
||||
setuptools_ver: ${{ matrix.setuptools_ver }}
|
||||
run: |
|
||||
sudo apt update && sudo apt install $apt_build_deps $apt_build_deps_meson
|
||||
eval "$get_pip_build_deps_meson"
|
||||
curl -SLf https://github.com/irssi-import/actions-irssi/raw/master/check-irssi/render.pl -o ~/render.pl && chmod +x ~/render.pl
|
||||
- name: build and install with meson
|
||||
run: |
|
||||
meson Build $build_options_meson --prefix=${prefix/\~/~}
|
||||
ninja -C Build
|
||||
ninja -C Build install >/dev/null
|
||||
- name: run launch test
|
||||
env:
|
||||
TERM: xterm
|
||||
run: |
|
||||
# automated irssi launch test
|
||||
cd
|
||||
mkdir irssi-test
|
||||
echo 'echo automated irssi launch test
|
||||
^set settings_autosave off
|
||||
^set -clear log_close_string
|
||||
^set -clear log_day_changed
|
||||
^set -clear log_open_string
|
||||
^set log_timestamp *
|
||||
^window log on
|
||||
load irc
|
||||
load dcc
|
||||
load flood
|
||||
load notifylist
|
||||
load perl
|
||||
load otr
|
||||
load proxy
|
||||
^quit' > irssi-test/startup
|
||||
irssi-build/bin/irssi --home irssi-test | perl -Mutf8 -C ~/render.pl
|
||||
cat irc.log.*
|
||||
|
@ -390,6 +390,11 @@ if want_perl
|
||||
if perl_version == UNSET
|
||||
perl_version = run_command(cross_perl, '-V::version:', check : true).stdout().split('\'')[1]
|
||||
endif
|
||||
|
||||
# disable clang warning
|
||||
if perl_version.version_compare('<5.35.2')
|
||||
perl_cflags += cc.get_supported_arguments('-Wno-compound-token-split-by-macro')
|
||||
endif
|
||||
perl_dep = declare_dependency(compile_args : perl_cflags, link_args : perl_ldflags,
|
||||
version : perl_version)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user