mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -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_day_changed
|
||||||
^set -clear log_open_string
|
^set -clear log_open_string
|
||||||
^set log_timestamp *
|
^set log_timestamp *
|
||||||
^window log on' > irssi-test/startup
|
^window log on
|
||||||
echo load perl >> irssi-test/startup
|
load irc
|
||||||
echo load proxy >> irssi-test/startup
|
load dcc
|
||||||
echo ^quit >> irssi-test/startup
|
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
|
irssi-build/bin/irssi --home irssi-test | perl -Mutf8 -C ~/render.pl
|
||||||
cat irc.log.*
|
cat irc.log.*
|
||||||
|
@ -390,6 +390,11 @@ if want_perl
|
|||||||
if perl_version == UNSET
|
if perl_version == UNSET
|
||||||
perl_version = run_command(cross_perl, '-V::version:', check : true).stdout().split('\'')[1]
|
perl_version = run_command(cross_perl, '-V::version:', check : true).stdout().split('\'')[1]
|
||||||
endif
|
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,
|
perl_dep = declare_dependency(compile_args : perl_cflags, link_args : perl_ldflags,
|
||||||
version : perl_version)
|
version : perl_version)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user