mirror of
https://github.com/roswell/roswell.git
synced 2026-09-10 07:16:17 -04:00
114 lines
2.6 KiB
YAML
114 lines
2.6 KiB
YAML
name: windows
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-windows:
|
|
runs-on: windows-latest
|
|
timeout-minutes: 90
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
arch: [x86_64, i686]
|
|
include:
|
|
- arch: x86_64
|
|
arch2: amd64
|
|
bit: 64
|
|
- arch: i686
|
|
arch2: i686
|
|
bit: 32
|
|
env:
|
|
RESULT_NAME: windows-${{ matrix.arch2 }}
|
|
RESULT_PATH: windows-${{ matrix.arch2 }}
|
|
RESULT_PATH_SUB: roswell
|
|
|
|
environment: SET_VERSION
|
|
|
|
steps:
|
|
- run: git config --global core.autocrlf false
|
|
- uses: actions/checkout@v2
|
|
- uses: msys2/setup-msys2@v2
|
|
with:
|
|
msystem: MINGW${{ matrix.bit }}
|
|
path-type: inherit
|
|
release: true
|
|
update: true
|
|
install: >-
|
|
base-devel
|
|
p7zip
|
|
autotools
|
|
mingw-w64-${{ matrix.arch }}-toolchain
|
|
mingw-w64-${{ matrix.arch }}-autotools
|
|
- name: Run MSYS2 once
|
|
shell: msys2 {0}
|
|
run: |
|
|
pwd
|
|
echo $MSYSTEM
|
|
echo $MSYS2_PATH_TYPE
|
|
echo $PATH
|
|
- name: Build
|
|
shell: msys2 {0}
|
|
run: |
|
|
gcc -v
|
|
./bootstrap
|
|
./configure
|
|
make
|
|
make install
|
|
make pack.zip
|
|
- name: Upload
|
|
env:
|
|
GITHUB_OAUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
shell: msys2 {0}
|
|
run: |
|
|
make -f scripts/Makefile latest-version win-upload
|
|
|
|
build-windows-arm64:
|
|
runs-on: windows-11-arm
|
|
timeout-minutes: 90
|
|
env:
|
|
RESULT_NAME: windows-aarch64
|
|
RESULT_PATH: windows-aarch64
|
|
RESULT_PATH_SUB: roswell
|
|
|
|
environment: SET_VERSION
|
|
|
|
steps:
|
|
- run: git config --global core.autocrlf false
|
|
- uses: actions/checkout@v2
|
|
- uses: msys2/setup-msys2@v2
|
|
with:
|
|
msystem: CLANGARM64
|
|
path-type: inherit
|
|
release: true
|
|
update: true
|
|
install: >-
|
|
base-devel
|
|
p7zip
|
|
autotools
|
|
mingw-w64-clang-aarch64-toolchain
|
|
mingw-w64-clang-aarch64-autotools
|
|
- name: Run MSYS2 once
|
|
shell: msys2 {0}
|
|
run: |
|
|
pwd
|
|
echo $MSYSTEM
|
|
echo $MSYSTEM_CARCH
|
|
echo $PATH
|
|
- name: Build
|
|
shell: msys2 {0}
|
|
run: |
|
|
clang -v
|
|
./bootstrap
|
|
CC=clang ./configure
|
|
make
|
|
make install
|
|
make pack.zip
|
|
- name: Upload
|
|
env:
|
|
GITHUB_OAUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
shell: msys2 {0}
|
|
run: |
|
|
make -f scripts/Makefile latest-version win-upload
|