AVX emulation #319
Workflow file for this run
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
name: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
# Skip building pull requests from the same repository | |
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }} | |
runs-on: windows-2019 | |
env: | |
# Disable output buffering in an attempt to get readable errors | |
PYTHONUNBUFFERED: '1' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Python environment | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
architecture: 'x64' | |
cache: 'pip' | |
cache-dependency-path: 'setup.cfg' | |
- name: Python setup | |
run: | | |
python setup.py develop | |
- name: Add msbuild to PATH | |
uses: microsoft/[email protected] | |
- name: Cache build | |
uses: actions/cache@v3 | |
id: cache-build | |
with: | |
path: 'tests/DumpulatorTests/bin' | |
key: ${{ runner.os }}-${{ hashFiles('tests/DumpulatorTests/**') }} | |
- name: Build DumpulatorTests | |
if: steps.cache-build.outputs.cache-hit != 'true' | |
run: | | |
msbuild /p:Configuration=Release /p:Platform=Win32 tests\DumpulatorTests\DumpulatorTests.sln | |
msbuild /p:Configuration=Release /p:Platform=x64 tests\DumpulatorTests\DumpulatorTests.sln | |
- name: Cache dumps | |
uses: actions/cache@v3 | |
id: cache-dumps | |
with: | |
path: 'tests/*.dmp' | |
key: ${{ runner.os }}-${{ hashFiles('tests/download_artifacts.py') }} | |
- name: Download dumps | |
if: steps.cache-dumps.outputs.cache-hit != 'true' | |
run: | | |
cd tests | |
curl -sSOJL https://github.com/mrexodia/dumpulator/releases/download/v0.0.1/StringEncryptionFun_x64.dmp | |
curl -sSOJL https://github.com/mrexodia/dumpulator/releases/download/v0.0.1/StringEncryptionFun_x86.dmp | |
python download_artifacts.py | |
- name: 'Test: StringEncryptionFun_x64' | |
run: | | |
cd tests | |
python getting-started.py | |
- name: 'Test: StringEncryptionFun_x86' | |
run: | | |
cd tests | |
python getting-started32.py | |
- name: 'Test: DumpulatorTests' | |
run: | | |
cd tests | |
python run-tests.py | |
- name: 'Test: ExceptionTest_x64' | |
run: | | |
cd tests | |
python execute-dump.py ExceptionTest_x64.dmp | |
- name: 'Test: ExceptionTest_x86' | |
run: | | |
cd tests | |
python execute-dump.py ExceptionTest_x86.dmp | |
publish: | |
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Python environment | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
architecture: 'x64' | |
- name: Package | |
run: | | |
python setup.py sdist | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@0bf742be3ebe032c25dd15117957dc15d0cfc38d # v1.8.5 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
- name: Release | |
uses: softprops/action-gh-release@c9b46fe7aad9f02afd89b12450b780f52dacfb2d # master 2023-03-26 | |
with: | |
generate_release_notes: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |