Skip to content

Commit

Permalink
Move nightly builds to releases instead of GitHub Actions (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
VisualEhrmanntraut authored May 22, 2024
1 parent c5b20d6 commit f7baa7a
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,21 @@ jobs:
with:
submodules: "recursive"
- name: CI Bootstrap
run: |
src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/ci-bootstrap.sh) && eval "$src" || exit 1
run: src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/ci-bootstrap.sh) && eval "$src" || exit 1
- name: Lilu Bootstrap
run: |
src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/Lilu/master/Lilu/Scripts/bootstrap.sh) && eval "$src" || exit 1
run: src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/Lilu/master/Lilu/Scripts/bootstrap.sh) && eval "$src" || exit 1
- run: xcodebuild -configuration Debug
- run: xcodebuild -configuration Release

- name: Upload to Artifacts
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: build/*/*.zip
- name: Upload to Release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd
- name: Upload build
uses: svenstaro/upload-release-action@2.9.0
if: github.event_name != 'pull_request'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/*/*.zip
tag: ${{ github.ref }}
tag: ${{ github.event_name == 'release' && github.ref || 'nightly' }}
file_glob: true
prerelease: ${{ github.event_name != 'release' }}
overwrite: true

analyse-clang:
name: Analyse Clang
Expand All @@ -54,11 +47,8 @@ jobs:
with:
submodules: "recursive"
- name: CI Bootstrap
run: |
src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/ci-bootstrap.sh) && eval "$src" || exit 1
run: src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/ci-bootstrap.sh) && eval "$src" || exit 1
- name: Lilu Bootstrap
run: |
src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/Lilu/master/Lilu/Scripts/bootstrap.sh) && eval "$src" || exit 1
run: src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/Lilu/master/Lilu/Scripts/bootstrap.sh) && eval "$src" || exit 1
- run: xcodebuild analyze -quiet -scheme NootedRed -configuration Debug CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang-analyze" && [ "$(find clang-analyze -name "*.html")" = "" ]
- run: xcodebuild analyze -quiet -scheme NootedRed -configuration Release CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang-analyze" && [ "$(find clang-analyze -name "*.html")" = "" ]

0 comments on commit f7baa7a

Please # to comment.