Skip to content

Commit 308cbb2

Browse files
authored
Merge pull request #127 from d3m3vilurr/revert-dbfdc1f8c
Revert "Removed windows mingw build from the pipeline"
2 parents 4b92df2 + 3ba892b commit 308cbb2

1 file changed

Lines changed: 28 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@ on:
99
jobs:
1010
build-linux:
1111
runs-on: ubuntu-latest
12-
container: ubuntu:14.04
1312
steps:
1413
- uses: actions/checkout@v3
14+
- uses: actions/setup-python@v2
1515
- name: Install dependencies
1616
run: |
1717
sudo apt-get update
1818
sudo apt-get install -y software-properties-common
19-
sudo add-apt-repository ppa:george-edison55/cmake-3.x
20-
sudo apt-get update
21-
sudo apt-get install -y cmake cmake-data git build-essential autoconf automake libtool texinfo bison flex pkg-config python
19+
sudo apt-get install -y cmake cmake-data git build-essential autoconf automake libtool texinfo bison flex pkg-config
2220
- name: Build
2321
run: |
2422
git config --global user.email "builds@travis-ci.com"
@@ -53,4 +51,29 @@ jobs:
5351
with:
5452
name: vitasdk-macos
5553
path: build/*.tar.bz2
56-
54+
build-windows:
55+
runs-on: ubuntu-latest
56+
steps:
57+
- uses: actions/checkout@v3
58+
- uses: actions/setup-python@v2
59+
- name: Install dependencies
60+
run: |
61+
sudo apt-get update
62+
sudo apt-get install -y software-properties-common
63+
sudo apt-get install -y cmake cmake-data git build-essential autoconf automake libtool texinfo bison flex pkg-config g++-mingw-w64
64+
- name: Build
65+
run: |
66+
git config --global user.email "builds@travis-ci.com"
67+
git config --global user.name "Travis CI"
68+
unset CXX
69+
unset CC
70+
mkdir build
71+
cd build
72+
cmake .. -DCMAKE_TOOLCHAIN_FILE=toolchain-x86_64-w64-mingw32.cmake
73+
make -j$(nproc) tarball
74+
- name: Upload artifacts
75+
if: ${{ success() }}
76+
uses: actions/upload-artifact@v3
77+
with:
78+
name: vitasdk-windows
79+
path: build/*.tar.bz2

0 commit comments

Comments
 (0)