Skip to content

Commit

Permalink
auto-build
Browse files Browse the repository at this point in the history
  • Loading branch information
bucanero committed Jan 25, 2024
1 parent 3aa681c commit 0a4ffae
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/build-win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build Windows binaries

on:
push:
pull_request:
repository_dispatch:
types: [run_build]

jobs:
msys:
runs-on: windows-2019
strategy:
matrix:
mingw: ["MINGW32", "MINGW64"]
include:
- mingw: "MINGW32"
package: "mingw-w64-i686"
- mingw: "MINGW64"
package: "mingw-w64-x86_64"
defaults:
run:
shell: bash.exe --login -eo pipefail "{0}"
env:
MSYSTEM: ${{ matrix.mingw }}
CHERE_INVOKING: 1
name: MSYS2 ${{ matrix.mingw }}
steps:
- uses: actions/checkout@v4
- name: Set up shell
run: echo "C:\msys64\usr\bin\" >> $GITHUB_PATH
shell: pwsh

- name: Install MinGW requirements
run: |
echo "$GITHUB_WORKSPACE"
#pacman -S --noconfirm ${{ matrix.package }}-zlib-devel
# build the project
- name: Build binaries
run: |
make
- name: Get short SHA
run: echo "sha_name=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV

- name: Compress output
run: |
tar -zcvf build.tar.gz ps2vmc-tool.exe
- uses: actions/upload-artifact@v3
with:
name: build-${{ env.sha_name }}-${{matrix.mingw}}
path: build.tar.gz
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build binaries

on:
push:
pull_request:
repository_dispatch:
types: [run_build]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]

steps:
- uses: actions/checkout@v4

- name: Install Ubuntu requirements
if: matrix.os == 'ubuntu-latest'
run: |
echo "No requirements"
#sudo apt-get update
#sudo apt-get -y install autoconf automake bison flex gcc libelf-dev make texinfo libncurses5-dev patch python subversion wget zlib1g-dev libtool-bin python-dev bzip2 libgmp3-dev pkg-config
- name: Install macOS requirements
if: matrix.os == 'macos-latest'
run: |
echo "No requirements"
#brew update
#brew install autoconf automake openssl libelf ncurses zlib gmp wget pkg-config
- name: Runs all the stages in the shell
run: |
make
- name: Get short SHA
run: echo "sha_name=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV

- name: Compress output
run: |
tar -zcvf build.tar.gz ps2vmc-tool
- uses: actions/upload-artifact@v3
with:
name: build-${{ env.sha_name }}-${{matrix.os}}
path: build.tar.gz

0 comments on commit 0a4ffae

Please sign in to comment.