Move jobs into single workflow, and follow redirects when downloading JUCE

pull/196/head
James Ball 2023-12-30 11:40:23 +00:00 zatwierdzone przez James H Ball
rodzic 0b27d08cbb
commit b5d4ba0ad5
5 zmienionych plików z 73 dodań i 85 usunięć

72
.github/workflows/build.yaml vendored 100644
Wyświetl plik

@ -0,0 +1,72 @@
name: Build
on:
push:
branches:
- release
jobs:
build-linux:
name: Build Linux
runs-on: ubuntu-latest
steps:
- name: Fix up git URLs
run: echo -e '[url "https://github.com/"]\n insteadOf = "git@github.com:"' >> ~/.gitconfig
shell: bash
- uses: actions/checkout@v1
with:
token: ${{ secrets.ACCESS_TOKEN }}
submodules: true
- name: "Run script"
run: |
export OS="linux"
./ci/build.sh
shell: bash
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: Binaries
path: bin
retention-days: 1
build-macos:
name: Build macOS
runs-on: macos-latest
steps:
- name: Fix up git URLs
run: echo -e '[url "https://github.com/"]\n insteadOf = "git@github.com:"' >> ~/.gitconfig
shell: bash
- uses: actions/checkout@v1
with:
token: ${{ secrets.ACCESS_TOKEN }}
submodules: true
- name: "Run script"
run: |
export OS="mac"
./ci/build.sh
shell: bash
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: Binaries
path: bin
retention-days: 1
build-windows:
name: Build Windows
runs-on: windows-latest
steps:
- name: Fix up git URLs
run: echo -e '[url "https://github.com/"]\n insteadOf = "git@github.com:"' >> ~/.gitconfig
shell: bash
- uses: actions/checkout@v1
with:
token: ${{ secrets.ACCESS_TOKEN }}
submodules: true
- name: "Run script"
run: |
export OS="win"
./ci/build.sh
shell: bash
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: Binaries
path: bin
retention-days: 1

Wyświetl plik

@ -1,28 +0,0 @@
name: Build Linux
on:
push:
branches:
- release
jobs:
build:
name: Build Linux
runs-on: ubuntu-latest
steps:
- name: Fix up git URLs
run: echo -e '[url "https://github.com/"]\n insteadOf = "git@github.com:"' >> ~/.gitconfig
shell: bash
- uses: actions/checkout@v1
with:
token: ${{ secrets.ACCESS_TOKEN }}
submodules: true
- name: "Run script"
run: |
export OS="linux"
./ci/build.sh
shell: bash
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: Binaries
path: bin
retention-days: 1

Wyświetl plik

@ -1,28 +0,0 @@
name: Build macOS
on:
push:
branches:
- release
jobs:
build:
name: Build macOS
runs-on: macos-latest
steps:
- name: Fix up git URLs
run: echo -e '[url "https://github.com/"]\n insteadOf = "git@github.com:"' >> ~/.gitconfig
shell: bash
- uses: actions/checkout@v1
with:
token: ${{ secrets.ACCESS_TOKEN }}
submodules: true
- name: "Run script"
run: |
export OS="mac"
./ci/build.sh
shell: bash
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: Binaries
path: bin
retention-days: 1

Wyświetl plik

@ -1,28 +0,0 @@
name: Build Windows
on:
push:
branches:
- release
jobs:
build:
name: Build Windows
runs-on: windows-latest
steps:
- name: Fix up git URLs
run: echo -e '[url "https://github.com/"]\n insteadOf = "git@github.com:"' >> ~/.gitconfig
shell: bash
- uses: actions/checkout@v1
with:
token: ${{ secrets.ACCESS_TOKEN }}
submodules: true
- name: "Run script"
run: |
export OS="win"
./ci/build.sh
shell: bash
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: Binaries
path: bin
retention-days: 1

Wyświetl plik

@ -30,7 +30,7 @@ elif [ "$OS" = "mac" ]; then
PROJUCER_OS="osx" PROJUCER_OS="osx"
fi fi
curl -s -S "https://api.juce.com/api/v1/download/juce/latest/$PROJUCER_OS" -o Projucer.zip curl -s -S -L "https://api.juce.com/api/v1/download/juce/latest/$PROJUCER_OS" -o Projucer.zip
unzip Projucer.zip unzip Projucer.zip
# Resave jucer file # Resave jucer file