Skip to content

Commit a85ff7b

Browse files
committed
auto-build
1 parent 3aa681c commit a85ff7b

File tree

3 files changed

+103
-2
lines changed

3 files changed

+103
-2
lines changed

.github/workflows/build-win.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build Windows binaries
2+
3+
on:
4+
push:
5+
pull_request:
6+
repository_dispatch:
7+
types: [run_build]
8+
9+
jobs:
10+
msys:
11+
runs-on: windows-2019
12+
strategy:
13+
matrix:
14+
mingw: ["MINGW32", "MINGW64"]
15+
include:
16+
- mingw: "MINGW32"
17+
package: "mingw-w64-i686"
18+
- mingw: "MINGW64"
19+
package: "mingw-w64-x86_64"
20+
defaults:
21+
run:
22+
shell: bash.exe --login -eo pipefail "{0}"
23+
env:
24+
MSYSTEM: ${{ matrix.mingw }}
25+
CHERE_INVOKING: 1
26+
name: MSYS2 ${{ matrix.mingw }}
27+
steps:
28+
- uses: actions/checkout@v4
29+
- name: Set up shell
30+
run: echo "C:\msys64\usr\bin\" >> $GITHUB_PATH
31+
shell: pwsh
32+
33+
- name: Install MinGW requirements
34+
run: |
35+
echo "$GITHUB_WORKSPACE"
36+
#pacman -S --noconfirm ${{ matrix.package }}-zlib-devel
37+
# build the project
38+
39+
- name: Build binaries
40+
run: |
41+
make
42+
43+
- name: Get short SHA
44+
run: echo "sha_name=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV
45+
46+
- name: Compress output
47+
run: |
48+
tar -zcvf build.tar.gz ps2vmc-tool.exe
49+
50+
- uses: actions/upload-artifact@v3
51+
with:
52+
name: build-${{ env.sha_name }}-${{matrix.mingw}}
53+
path: build.tar.gz

.github/workflows/build.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build binaries
2+
3+
on:
4+
push:
5+
pull_request:
6+
repository_dispatch:
7+
types: [run_build]
8+
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [macos-latest, ubuntu-latest]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Install Ubuntu requirements
20+
if: matrix.os == 'ubuntu-latest'
21+
run: |
22+
echo "No requirements"
23+
#sudo apt-get update
24+
#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
25+
26+
- name: Install macOS requirements
27+
if: matrix.os == 'macos-latest'
28+
run: |
29+
echo "No requirements"
30+
#brew update
31+
#brew install autoconf automake openssl libelf ncurses zlib gmp wget pkg-config
32+
33+
- name: Runs all the stages in the shell
34+
run: |
35+
make
36+
37+
- name: Get short SHA
38+
run: echo "sha_name=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV
39+
40+
- name: Compress output
41+
run: |
42+
tar -zcvf build.tar.gz ps2vmc-tool
43+
44+
- uses: actions/upload-artifact@v3
45+
with:
46+
name: build-${{ env.sha_name }}-${{matrix.os}}
47+
path: build.tar.gz

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This project aim to create a PC command line tool to manage their PS2 virtual me
55
## Usage
66

77
```
8-
PS2VMC-TOOL v1.0.0
8+
PS2VMC-TOOL v1.1.0
99
Copyright (C) 2023 - by Bucanero
1010
based on ps3mca-tool by jimmikaelkael et al.
1111
@@ -16,6 +16,7 @@ Available commands:
1616
--mc-info, -i
1717
--mc-free, -f
1818
--mc-image, -img <output filepath>
19+
--ecc-image, -ecc <output filepath>
1920
--mc-format
2021
--list, -ls <mc path>
2122
--extract-file, -x <mc filepath> <output filepath>
@@ -28,7 +29,7 @@ Available commands:
2829
--psu-export, -px <mc path> <output filepath>
2930
```
3031

31-
## Building the sources
32+
## Building the source code
3233

3334
```
3435
make

0 commit comments

Comments
 (0)