Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: build only on ubuntu and windows #21

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 18 additions & 46 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,21 @@ on:

jobs:
build-linux:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
container: ubuntu:14.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo apt-get install -y cmake cmake-data git build-essential autoconf automake libtool texinfo bison flex pkg-config
sudo apt-get install -y cmake cmake-data git build-essential autoconf automake libtool texinfo bison flex pkg-config python
- name: Build CMake 3.4.1
run: |
sudo apt-get install -y wget libcurl4-openssl-dev
wget http://www.cmake.org/files/v3.4/cmake-3.4.1.tar.gz && tar -xvzf cmake-3.4.1.tar.gz
cd cmake-3.4.1/ && ./configure --system-curl --parallel=$(nproc) && make -j$(nproc) && sudo make install
update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 1 --force
- name: Clone
run: |
export REV=dirty-$(git describe --always)
Expand Down Expand Up @@ -47,56 +53,22 @@ jobs:
file_glob: true
tag: master-linux-v2.${{github.run_number}}
release_name: master-linux-v2.${{github.run_number}}
build-macos:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
- name: Install dependencies
run: |
brew install autoconf automake libtool
- name: Clone
run: |
export REV=dirty-$(git describe --always)
git clone https://github.com/vitasdk/buildscripts.git
chmod +x *.sh
- name: Build
run: |
cd buildscripts
git config --global user.email "[email protected]"
git config --global user.name "Travis CI"
mkdir build
cd build
cmake ..
make -j$(nproc) tarball
- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v3
with:
name: vitasdk-macos
path: buildscripts/build/*.tar.bz2
- uses: svenstaro/upload-release-action@v2
if: contains(github.ref,'refs/heads/master')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: buildscripts/build/*.tar.bz2
overwrite: true
file_glob: true
tag: master-osx-v2.${{github.run_number}}
release_name: master-osx-v2.${{github.run_number}}
build-windows:
# TODO match as build-linux
# we don't know reason yet, mingw build was failed when libelf compille.
# mingw output have to be static linking, and that this reason, we are able to use 22.04 in here
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container: ubuntu:14.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo apt-get install -y cmake cmake-data git build-essential autoconf automake libtool texinfo bison flex pkg-config g++-mingw-w64
sudo apt-get install -y cmake cmake-data git build-essential autoconf automake libtool texinfo bison flex pkg-config python g++-mingw-w64
- name: Build CMake 3.4.1
run: |
sudo apt-get install -y wget libcurl4-openssl-dev
wget http://www.cmake.org/files/v3.4/cmake-3.4.1.tar.gz && tar -xvzf cmake-3.4.1.tar.gz
cd cmake-3.4.1/ && ./configure --system-curl --parallel=$(nproc) && make -j$(nproc) && sudo make install
update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 1 --force
- name: Clone
run: |
export REV=dirty-$(git describe --always)
Expand Down