-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4659 from maron2000/cxx11_test
Add C++11 build test to CI workflow
- Loading branch information
Showing
4 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,3 +81,42 @@ jobs: | |
with: | ||
name: dosbox-x-linux-x86_64-${{ env.timestamp }} | ||
path: ${{ github.workspace }}/src/bin/ | ||
Test_cxx11: | ||
permissions: | ||
actions: write # for styfle/cancel-workflow-action to cancel/stop running workflows | ||
contents: read # for actions/checkout to fetch code | ||
if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '14' | ||
- name: Install libraries | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y nasm fluidsynth libfluidsynth-dev libpcap-dev libslirp-dev libsdl-net1.2-dev libsdl2-net-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev | ||
mkdir src/bin | ||
- name: Build Linux SDL1 | ||
run: | | ||
top=`pwd` | ||
./build-debug --enable-force-cxx11 | ||
strip -s $top/src/dosbox-x | ||
cp $top/src/dosbox-x $top/src/bin/dosbox-x-sdl1 | ||
- name: Build Linux SDL2 | ||
run: | | ||
top=`pwd` | ||
./build-debug-sdl2 --enable-force-cxx11 | ||
strip -s $top/src/dosbox-x | ||
cp $top/src/dosbox-x $top/src/bin/dosbox-x-sdl2 | ||
- name: Unit testing | ||
run: | | ||
top=`pwd` | ||
chmod +x $top/src/bin/dosbox-x-sdl1 $top/src/bin/dosbox-x-sdl2 | ||
$top/src/bin/dosbox-x-sdl1 -tests | ||
$top/src/bin/dosbox-x-sdl2 -tests | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters