diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..1c8e7a2 --- /dev/null +++ b/.github/workflows/build.yaml @@ -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 diff --git a/.github/workflows/build_linux.yaml b/.github/workflows/build_linux.yaml deleted file mode 100644 index 76c581e..0000000 --- a/.github/workflows/build_linux.yaml +++ /dev/null @@ -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 diff --git a/.github/workflows/build_macos.yaml b/.github/workflows/build_macos.yaml deleted file mode 100644 index c2d1e29..0000000 --- a/.github/workflows/build_macos.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.github/workflows/build_windows.yaml b/.github/workflows/build_windows.yaml deleted file mode 100644 index 81bb936..0000000 --- a/.github/workflows/build_windows.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/ci/build.sh b/ci/build.sh index c99ea6e..325673b 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -30,7 +30,7 @@ elif [ "$OS" = "mac" ]; then PROJUCER_OS="osx" 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 # Resave jucer file