Skip to content

Commit

Permalink
Refresh the build to actually work again.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed Jun 30, 2024
1 parent 9c7fd03 commit d42c49b
Showing 1 changed file with 26 additions and 20 deletions.
46 changes: 26 additions & 20 deletions .github/workflows/magnum-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,35 +89,40 @@ jobs:
python3.9 -m ensurepip --altinstall
python3.10 -m ensurepip --altinstall
- name: Clone Corrade
uses: actions/checkout@v3
# checkout v4 uses Node 20 which doesn't work on Ubuntu 18.04
uses: actions/[email protected]
with:
repository: mosra/corrade
path: corrade
# Needed for tags :(
fetch-depth: 0
- name: Clone Magnum
uses: actions/checkout@v3
# checkout v4 uses Node 20 which doesn't work on Ubuntu 18.04
uses: actions/[email protected]
with:
repository: mosra/magnum
path: magnum
# Needed for tags :(
fetch-depth: 0
- name: Clone Magnum Plugins
uses: actions/checkout@v3
# checkout v4 uses Node 20 which doesn't work on Ubuntu 18.04
uses: actions/[email protected]
with:
repository: mosra/magnum-plugins
path: magnum-plugins
# Needed for tags :(
fetch-depth: 0
- name: Clone Magnum Extras
uses: actions/checkout@v3
# checkout v4 uses Node 20 which doesn't work on Ubuntu 18.04
uses: actions/[email protected]
with:
repository: mosra/magnum-extras
path: magnum-extras
# Needed for tags :(
fetch-depth: 0
- name: Clone Magnum Bindings
uses: actions/checkout@v3
# checkout v4 uses Node 20 which doesn't work on Ubuntu 18.04
uses: actions/[email protected]
with:
repository: mosra/magnum-bindings
path: magnum-bindings
Expand Down Expand Up @@ -476,7 +481,8 @@ jobs:
mv install magnum-tools-${{ env.CORRADE_VERSION }}-${{ env.MAGNUM_VERSION }}-${{ env.MAGNUM_PLUGINS_VERSION }}-${{ env.MAGNUM_EXTRAS_VERSION }}-${{ env.MAGNUM_BINDINGS_VERSION }}-linux-x64
tar -cf magnum-tools-${{ env.CORRADE_VERSION }}-${{ env.MAGNUM_VERSION }}-${{ env.MAGNUM_PLUGINS_VERSION }}-${{ env.MAGNUM_EXTRAS_VERSION }}-${{ env.MAGNUM_BINDINGS_VERSION }}-linux-x64.tar magnum-tools-${{ env.CORRADE_VERSION }}-${{ env.MAGNUM_VERSION }}-${{ env.MAGNUM_PLUGINS_VERSION }}-${{ env.MAGNUM_EXTRAS_VERSION }}-${{ env.MAGNUM_BINDINGS_VERSION }}-linux-x64
- name: Upload artifacts
uses: actions/upload-artifact@v3
# upload-artifact v4 uses Node 20 which doesn't work on Ubuntu 18.04
uses: actions/[email protected]
with:
name: magnum-tools-${{ env.CORRADE_VERSION }}-${{ env.MAGNUM_VERSION }}-${{ env.MAGNUM_PLUGINS_VERSION }}-${{ env.MAGNUM_EXTRAS_VERSION }}-${{ env.MAGNUM_BINDINGS_VERSION }}-linux-x64
path: magnum-tools-${{ env.CORRADE_VERSION }}-${{ env.MAGNUM_VERSION }}-${{ env.MAGNUM_PLUGINS_VERSION }}-${{ env.MAGNUM_EXTRAS_VERSION }}-${{ env.MAGNUM_BINDINGS_VERSION }}-linux-x64.tar
Expand All @@ -487,29 +493,29 @@ jobs:
strategy:
matrix:
include:
- os: macos11-x64-arm64
runs-on: macos-11
- os: macos12-x64-arm64
runs-on: macos-12
steps:
- name: Install base build tools
run: |
brew install ninja
mkdir -p deps
- name: Clone Corrade
uses: actions/checkout@v3
uses: actions/checkout@v4.1.7
with:
repository: mosra/corrade
path: corrade
# Needed for tags :(
fetch-depth: 0
- name: Clone Magnum
uses: actions/checkout@v3
uses: actions/checkout@v4.1.7
with:
repository: mosra/magnum
path: magnum
# Needed for tags :(
fetch-depth: 0
- name: Clone Magnum Plugins
uses: actions/checkout@v3
uses: actions/checkout@v4.1.7
with:
repository: mosra/magnum-plugins
path: magnum-plugins
Expand Down Expand Up @@ -681,7 +687,7 @@ jobs:
mv install magnum-tools-${{ env.CORRADE_VERSION }}-${{ env.MAGNUM_VERSION }}-${{ env.MAGNUM_PLUGINS_VERSION }}-${{ matrix.os }}
tar -cf magnum-tools-${{ env.CORRADE_VERSION }}-${{ env.MAGNUM_VERSION }}-${{ env.MAGNUM_PLUGINS_VERSION }}-${{ matrix.os }}.tar magnum-tools-${{ env.CORRADE_VERSION }}-${{ env.MAGNUM_VERSION }}-${{ env.MAGNUM_PLUGINS_VERSION }}-${{ matrix.os }}
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.3.3
# TODO add extras + bindings version once built
with:
name: magnum-tools-${{ env.CORRADE_VERSION }}-${{ env.MAGNUM_VERSION }}-${{ env.MAGNUM_PLUGINS_VERSION }}-${{ matrix.os }}
Expand All @@ -699,39 +705,39 @@ jobs:
run: |
mkdir deps
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@v3
uses: seanmiddleditch/gha-setup-ninja@v5
- name: Set up Visual Studio environment
uses: seanmiddleditch/gha-setup-vsdevenv@v3
uses: compnerd/gha-setup-vsdevenv@v6
- name: Clone Corrade
uses: actions/checkout@v3
uses: actions/checkout@v4.1.7
with:
repository: mosra/corrade
path: corrade
# Needed for tags :(
fetch-depth: 0
- name: Clone Magnum
uses: actions/checkout@v3
uses: actions/checkout@v4.1.7
with:
repository: mosra/magnum
path: magnum
# Needed for tags :(
fetch-depth: 0
- name: Clone Magnum Plugins
uses: actions/checkout@v3
uses: actions/checkout@v4.1.7
with:
repository: mosra/magnum-plugins
path: magnum-plugins
# Needed for tags :(
fetch-depth: 0
- name: Clone Magnum Extras
uses: actions/checkout@v3
uses: actions/checkout@v4.1.7
with:
repository: mosra/magnum-extras
path: magnum-extras
# Needed for tags :(
fetch-depth: 0
- name: Clone Magnum Bindings
uses: actions/checkout@v3
uses: actions/checkout@v4.1.7
with:
repository: mosra/magnum-bindings
path: magnum-bindings
Expand Down Expand Up @@ -1021,7 +1027,7 @@ jobs:
VERSION=$(git describe --match "v*" --abbrev=4)
echo "MAGNUM_BINDINGS_VERSION=${VERSION:9}" >> $GITHUB_ENV
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.3.3
with:
name: magnum-tools-${{ env.CORRADE_VERSION }}-${{ env.MAGNUM_VERSION }}-${{ env.MAGNUM_PLUGINS_VERSION }}-${{ env.MAGNUM_EXTRAS_VERSION }}-${{ env.MAGNUM_BINDINGS_VERSION }}-windows
path: install

0 comments on commit d42c49b

Please sign in to comment.