mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-13 18:32:56 +00:00
Move windows CI jobs into a separate file
This commit is contained in:
parent
ccd00acfad
commit
9b1d09abdb
85
.github/workflows/ci.yml
vendored
85
.github/workflows/ci.yml
vendored
@ -154,91 +154,6 @@ jobs:
|
||||
cd ..
|
||||
find "/tmp/r 2"
|
||||
LD_LIBRARY_PATH="/tmp/r 2/lib/x86_64-linux-gnu/" "/tmp/r 2/bin/r2" -v
|
||||
w32-meson:
|
||||
# if: contains(github.ref, 'master') || contains(github.ref, 'ci-')
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install meson==0.59.4 ninja r2pipe wget
|
||||
- name: Extract r2 version
|
||||
run: echo "##[set-output name=branch;]$( cd sys;python version.py )"
|
||||
id: r2v
|
||||
- name: Build with meson + ninja
|
||||
shell: pwsh
|
||||
run: |
|
||||
.github\vsdevenv.ps1
|
||||
meson --buildtype=release --prefix=$PWD\radare2-${{ steps.r2v.outputs.branch }}-w32 build
|
||||
ninja -C build
|
||||
ninja -C build install
|
||||
- name: Create zip artifact
|
||||
run: 7z a radare2-${{ steps.r2v.outputs.branch }}-w32.zip $PWD\radare2-${{ steps.r2v.outputs.branch }}-w32
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: radare2-${{ steps.r2v.outputs.branch }}-w32.zip
|
||||
path: radare2-${{ steps.r2v.outputs.branch }}-w32.zip
|
||||
# - uses: actions/checkout@v2
|
||||
# with:
|
||||
# repository: radareorg/radare2-win-installer
|
||||
# path: ./radare2-win-installer
|
||||
# - name: Extract r2 version
|
||||
# run: echo "##[set-output name=branch;]$( python sys\\version.py )"
|
||||
# id: extract_version
|
||||
# - name: Create installer
|
||||
# shell: pwsh
|
||||
# run: iscc radare2-win-installer\radare2.iss /DRadare2Location=..\radare2-install\* /DLicenseLocation=..\COPYING.LESSER /DIcoLocation=radare2.ico /DMyAppVersion=${{ steps.extract_version.outputs.branch }}
|
||||
# - uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: radare2-w32-installer-git.exe
|
||||
# path: radare2-win-installer\Output\radare2.exe
|
||||
w64-meson:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- name: Preparing nmake
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
with:
|
||||
arch: x64
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install meson==0.59.4 ninja r2pipe wget
|
||||
- name: Extract r2 version
|
||||
run: echo "##[set-output name=branch;]$( cd sys; python version.py )"
|
||||
id: r2v
|
||||
- name: Build with meson + ninja
|
||||
shell: pwsh
|
||||
run: |
|
||||
# cmd '/c call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" "x86_64"'
|
||||
bash sys/source_bat.bash 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat' "x86_64"
|
||||
# meson_options: --default-library=shared|static -Dstatic_runtime=true --backend vs2019
|
||||
meson --buildtype=release --prefix=$PWD\radare2-${{ steps.r2v.outputs.branch }}-w64 build
|
||||
ninja -C build
|
||||
ninja -C build install
|
||||
- name: Create zip artifact
|
||||
run: 7z a radare2-${{ steps.r2v.outputs.branch }}-w64.zip $PWD\radare2-${{ steps.r2v.outputs.branch }}-w64
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: radare2-${{ steps.r2v.outputs.branch }}-w64.zip
|
||||
path: radare2-${{ steps.r2v.outputs.branch }}-w64.zip
|
||||
# - uses: actions/checkout@v2
|
||||
# with:
|
||||
# repository: radareorg/radare2-win-installer
|
||||
# path: ./radare2-win-installer
|
||||
# - name: Create installer
|
||||
# shell: pwsh
|
||||
# run: iscc radare2-win-installer\radare2.iss /DRadare2Location=..\radare2-install\* /DLicenseLocation=..\COPYING.LESSER /DIcoLocation=radare2.ico /DMyAppVersion=${{ steps.extract_version.outputs.branch }}
|
||||
# - uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: radare2-w64-installer-git.zip
|
||||
# path: radare2-win-installer\Output\radare2.exe
|
||||
# LINUX
|
||||
linux-static:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
|
94
.github/workflows/windows.yml
vendored
Normal file
94
.github/workflows/windows.yml
vendored
Normal file
@ -0,0 +1,94 @@
|
||||
name: windows
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
w32-meson:
|
||||
# if: contains(github.ref, 'master') || contains(github.ref, 'ci-')
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install meson==0.59.4 ninja r2pipe wget
|
||||
- name: Extract r2 version
|
||||
run: echo "##[set-output name=branch;]$( cd sys;python version.py )"
|
||||
id: r2v
|
||||
- name: Build with meson + ninja
|
||||
shell: pwsh
|
||||
run: |
|
||||
.github\vsdevenv.ps1
|
||||
meson --buildtype=release --prefix=$PWD\radare2-${{ steps.r2v.outputs.branch }}-w32 build
|
||||
ninja -C build
|
||||
ninja -C build install
|
||||
- name: Create zip artifact
|
||||
run: 7z a radare2-${{ steps.r2v.outputs.branch }}-w32.zip $PWD\radare2-${{ steps.r2v.outputs.branch }}-w32
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: radare2-${{ steps.r2v.outputs.branch }}-w32.zip
|
||||
path: radare2-${{ steps.r2v.outputs.branch }}-w32.zip
|
||||
# - uses: actions/checkout@v2
|
||||
# with:
|
||||
# repository: radareorg/radare2-win-installer
|
||||
# path: ./radare2-win-installer
|
||||
# - name: Extract r2 version
|
||||
# run: echo "##[set-output name=branch;]$( python sys\\version.py )"
|
||||
# id: extract_version
|
||||
# - name: Create installer
|
||||
# shell: pwsh
|
||||
# run: iscc radare2-win-installer\radare2.iss /DRadare2Location=..\radare2-install\* /DLicenseLocation=..\COPYING.LESSER /DIcoLocation=radare2.ico /DMyAppVersion=${{ steps.extract_version.outputs.branch }}
|
||||
# - uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: radare2-w32-installer-git.exe
|
||||
# path: radare2-win-installer\Output\radare2.exe
|
||||
w64-meson:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- name: Preparing nmake
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
with:
|
||||
arch: x64
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install meson==0.59.4 ninja r2pipe wget
|
||||
- name: Extract r2 version
|
||||
run: echo "##[set-output name=branch;]$( cd sys; python version.py )"
|
||||
id: r2v
|
||||
- name: Build with meson + ninja
|
||||
shell: pwsh
|
||||
run: |
|
||||
# cmd '/c call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" "x86_64"'
|
||||
bash sys/source_bat.bash 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat' "x86_64"
|
||||
# meson_options: --default-library=shared|static -Dstatic_runtime=true --backend vs2019
|
||||
meson --buildtype=release --prefix=$PWD\radare2-${{ steps.r2v.outputs.branch }}-w64 build
|
||||
ninja -C build
|
||||
ninja -C build install
|
||||
- name: Create zip artifact
|
||||
run: 7z a radare2-${{ steps.r2v.outputs.branch }}-w64.zip $PWD\radare2-${{ steps.r2v.outputs.branch }}-w64
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: radare2-${{ steps.r2v.outputs.branch }}-w64.zip
|
||||
path: radare2-${{ steps.r2v.outputs.branch }}-w64.zip
|
||||
# - uses: actions/checkout@v2
|
||||
# with:
|
||||
# repository: radareorg/radare2-win-installer
|
||||
# path: ./radare2-win-installer
|
||||
# - name: Create installer
|
||||
# shell: pwsh
|
||||
# run: iscc radare2-win-installer\radare2.iss /DRadare2Location=..\radare2-install\* /DLicenseLocation=..\COPYING.LESSER /DIcoLocation=radare2.ico /DMyAppVersion=${{ steps.extract_version.outputs.branch }}
|
||||
# - uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: radare2-w64-installer-git.zip
|
||||
# path: radare2-win-installer\Output\radare2.exe
|
||||
# LINUX
|
Loading…
x
Reference in New Issue
Block a user