Skip to content

Commit

Permalink
Workflow file update
Browse files Browse the repository at this point in the history
  • Loading branch information
gansm committed Sep 17, 2024
1 parent dea7b94 commit c9fb675
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v3

- name: Install latest Alpine Linux
uses: jirutka/setup-alpine@v1
uses: jirutka/setup-alpine@v1 # see https://github.com/jirutka/setup-alpine
with:
arch: x86_64
branch: latest-stable
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/checkout@v3

- name: Test on ARM architecture
uses: uraimo/run-on-arch-action@v2
uses: uraimo/run-on-arch-action@v2 # see https://github.com/uraimo/run-on-arch-action
id: runcmd
with:
arch: ${{ matrix.arch }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v2 # see https://github.com/github/codeql-action
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: sudo gem install coveralls-lcov

- name: Build with with gcov
run: script -e -c "./build.sh coverage"
run: script -q -e -c './build.sh coverage'

- name: Generate lcov.info and publish to coveralls.io
run: |
Expand All @@ -66,5 +66,5 @@ jobs:
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
shasum -a 256 -c codecov.SHA256SUM
chmod +x codecov
./codecov
./codecov -t ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/coverity-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Make unit test
run: |
script -e -c "make check" && RET=$? || RET=$?
script -q -e -c 'make check' && RET=$? || RET=$?
cat test/*.log || echo
echo "Exit status: $RET"
exit "$RET"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cygwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: actions/checkout@v3

- name: Install Cygwin
uses: cygwin/cygwin-install-action@v3
uses: cygwin/cygwin-install-action@v3 # see https://github.com/cygwin/cygwin-install-action
with:
platform: ${{ matrix.platform }}
install-dir: C:\cygwin
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v3

- name: Test on FreeBSD 13.1
uses: cross-platform-actions/action@v0.10.0
uses: cross-platform-actions/action@v0 # see https://github.com/cross-platform-actions/action
with:
operating_system: freebsd
version: '13.1'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/netbsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v3

- name: Test on NetBSD 9.3
uses: cross-platform-actions/action@v0.22.0
uses: cross-platform-actions/action@v0 # see https://github.com/cross-platform-actions/action
with:
operating_system: netbsd
version: '9.3'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/openbsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v3

- name: Test on OpenBSD 7.2
uses: cross-platform-actions/action@v0.10.0
uses: cross-platform-actions/action@v0 # see https://github.com/cross-platform-actions/action
with:
operating_system: openbsd
version: '7.2'
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/solaris.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ jobs:
uses: actions/checkout@v4

- name: Test on Solaris 11.4
uses: vmactions/solaris-vm@v1
uses: vmactions/solaris-vm@v1 # see https://github.com/vmactions/solaris-vm
with:
release: "11.4-gcc"
prepare: |
pkg publisher solaris
beadm list
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,3 @@ jobs:
./configure --prefix=/usr
/tmp/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output make all
/tmp/sonar-scanner-${LATEST_VERSION}-linux-x64/bin/sonar-scanner
7 changes: 5 additions & 2 deletions final/eventloop/eventloop-class-diagram.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
│ Monitor │◄───┼───┤ TimerMonitorImpl │ ├──┤ TimerMonitor │
└─────────┘ │ └─────────────────┬┘ │ └──────────────┘
│ ┌───────────┐ ▲ ┌─────────────┐ │
└───┤ IoMonitor │ └───┤ KqueueTimer │◄──┘
└───────────┘ └─────────────┘
├───┤ IoMonitor │ └───┤ KqueueTimer │◄──┘
│ └───────────┘ └─────────────┘
│ ┌────────────────┐
└───┤ BackendMonitor │
└────────────────┘
4 changes: 2 additions & 2 deletions final/output/tty/foptiattr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1264,8 +1264,8 @@ inline void FOptiAttr::change_current_color ( const FChar& term
return true;
};

const auto& apply_AF_AB = apply_color_change(AF, AB, VGA);
const auto& apply_Sf_Sb = apply_color_change(Sf, Sb, ANSI);
const bool apply_AF_AB = apply_color_change(AF, AB, VGA);
const bool apply_Sf_Sb = apply_color_change(Sf, Sb, ANSI);

if ( apply_AF_AB || apply_Sf_Sb || ! sp )
return;
Expand Down
8 changes: 6 additions & 2 deletions test/eventloop-monitor-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,10 @@ class StringParser
{
auto callback = [this, eloop] (const finalcut::Monitor*, short)
{
// After a backend event is triggered, this event
// handling code is called by the dispatcher
// of the event loop. Immediately before this call,
// the triggering event has already been destroyed.
std::cout << "BackendMonitor callback handle";
processQueuedInput();
eloop->leave();
Expand Down Expand Up @@ -560,7 +564,7 @@ void StringParser::parseString()
number_queue.push_back(number_string.toInt());

if ( is_empty_before && ! number_queue.empty() )
queue_monitor.setEvent();
queue_monitor.setEvent(); // This line creates the event
}

//----------------------------------------------------------------------
Expand Down Expand Up @@ -895,7 +899,7 @@ void EventloopMonitorTest::BackendMonitorTest()
std::cout << "\n";
CPPUNIT_ASSERT ( string_parser.getQueue().empty() );
// The queue receives data and sends a backend event
string_parser.parseString();
string_parser.parseString(); // Create a backend event in the self-pipe
CPPUNIT_ASSERT ( ! string_parser.getQueue().empty() );
CPPUNIT_ASSERT ( string_parser.getQueue().size() == 9 );
CPPUNIT_ASSERT ( eloop.run() == 0 ); // Run event loop
Expand Down

0 comments on commit c9fb675

Please sign in to comment.