Skip to content

CC - container Alpine mingw64-gcc #3

CC - container Alpine mingw64-gcc

CC - container Alpine mingw64-gcc #3

# Copyright (C) Markus Franz Xaver Johannes Oberhumer
# DO NOT EDIT, GENERATED AUTOMATICALLY
name: CC - container Alpine mingw64-gcc
"on":
schedule:
- cron: 15 1 * * 2
workflow_dispatch: null
env:
CMAKE_REQUIRED_QUIET: "OFF"
CTEST_OUTPUT_ON_FAILURE: "ON"
DEBIAN_FRONTEND: noninteractive
VERBOSE: 1
REMOTE_REF_NAME: devel
REMOTE_REF_TYPE: branch
REMOTE_REPOSITORY: upx/upx
REMOTE_SERVER_URL: https://github.com
REMOTE_SHA: "0000000000000000000000000000000000000000"
jobs:
mingw64-gcc:
if: github.repository_owner == 'upx'
runs-on: ubuntu-latest
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
include:
- container: alpine:3.13
- container: alpine:3.14
- container: alpine:3.15
- container: alpine:3.16
- container: alpine:3.17
- container: alpine:3.18
- container: alpine:edge
env:
CC: x86_64-w64-mingw32-gcc -static
CXX: x86_64-w64-mingw32-g++ -static
steps:
- name: Display environment
run: |
uname -a; pwd; id; umask
env | LC_ALL=C sort
- name: ${{ format('Install packages {0}', matrix.container) }}
run: |
apk update && apk upgrade && apk add cmake git make mingw-w64-gcc
- name: ${{ format('Check out {0}/{1} {2} {3} source code', env.REMOTE_SERVER_URL, env.REMOTE_REPOSITORY, env.REMOTE_REF_TYPE, env.REMOTE_REF_NAME) }}
run: |
# git config
git config --global core.autocrlf false
git config --global --add safe.directory '*'
# install Self, needed for config file below
##git clone --branch "$GITHUB_REF_NAME" --depth 1 "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" ../Self
git clone --branch "$REMOTE_REF_NAME" --depth 1 "$REMOTE_SERVER_URL/$REMOTE_REPOSITORY" .
test -f ./.gitmodules && git submodule update --init
# TODO: handle REMOTE_REF_TYPE == "tag"
# update environment
rev="$(git rev-parse HEAD)"
echo "REMOTE_SHA=$rev" >> $GITHUB_ENV
- name: ${{ format('Build Debug with {0} and {1}', env.CC, env.CXX) }}
run: make build/debug
- name: ${{ format('Build Release with {0} and {1}', env.CC, env.CXX) }}
run: make build/release