Skip to content

Merge pull request #42 from hartwork/dependabot/github_actions/action… #216

Merge pull request #42 from hartwork/dependabot/github_actions/action…

Merge pull request #42 from hartwork/dependabot/github_actions/action… #216

Workflow file for this run

# This file is part of the visdriver project.
#
# Copyright (c) 2023 Sebastian Pipping <[email protected]>
#
# visdriver is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# visdriver is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along
# with visdriver. If not, see <https://www.gnu.org/licenses/>.
name: Build on Linux
# Drop permissions to minimum, for security
permissions:
contents: read
on:
pull_request:
push:
schedule:
- cron: '0 2 * * 5' # Every Friday at 2am
workflow_dispatch:
jobs:
linux-mingw:
name: Build on Linux
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Install build dependencies
run: |-
set -x
sudo apt-get update
sudo apt-get install --yes --no-install-recommends -V \
build-essential \
cmake \
mingw-w64
- name: Configure
run: |-
cmake \
-DCMAKE_TOOLCHAIN_FILE=cmake/mingw-toolchain.cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-S . \
-B build
- name: Make
run: |-
make -C build -j$(nproc) VERBOSE=1
- name: Prepare build artifacts for upload
run: |-
mkdir "visdriver_win32bin_mingw_${{ github.sha }}"
cp -v \
COPYING \
README.md \
/usr/i686-w64-mingw32/lib/libwinpthread-1.dll \
/usr/lib/gcc/i686-w64-mingw32/9.3-posix/libgcc_s_sjlj-1.dll \
/usr/lib/gcc/i686-w64-mingw32/9.3-posix/libstdc++-6.dll \
build/visdriver.exe \
"visdriver_win32bin_mingw_${{ github.sha }}"/
- name: Upload build artifacts
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: "visdriver_win32bin_mingw_${{ github.sha }}"
path: "visdriver_win32bin_mingw_${{ github.sha }}/"
if-no-files-found: error