diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c94d510..f4c6837 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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) @@ -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 "builds@travis-ci.com" - 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)