Skip to content

Commit

Permalink
ci: replace Azure entirely by GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Dec 27, 2024
1 parent ae736a0 commit 4c1fae4
Show file tree
Hide file tree
Showing 6 changed files with 250 additions and 386 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/appimage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: AppImage
on:
pull_request:
push:
branches:
- master
tags:
- v*

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
appimage:
name: AppImage
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Dependencies
run: ./ci/appimage.deps.sh

- name: Build
run: ./ci/appimage.build.sh

- name: Deploy
run: |
export GITTAGNOV=$(echo "$GITHUB_REF" | sed "s/.*\///;s/^v//")
export BUILD_ARTIFACTSTAGINGDIRECTORY="$PWD/staging"
mkdir -p "$BUILD_ARTIFACTSTAGINGDIRECTORY"
./ci/appimage.deploy.sh
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: appimage
path: |
staging/*.*
- name: Continuous
uses: softprops/action-gh-release@v2
if: github.event_name != 'pull_request'
with:
name: "Continuous"
tag_name: "continuous"
body: ""
append_body: true
generate_release_notes: false
files: |
staging/*.*
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request'
with:
body: ""
append_body: true
generate_release_notes: false
files: |
staging/*.*
208 changes: 0 additions & 208 deletions .github/workflows/continuous.yaml

This file was deleted.

68 changes: 68 additions & 0 deletions .github/workflows/mac-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,74 @@ concurrency:
cancel-in-progress: true

jobs:
macintel:
name: macOS (Intel)
runs-on: macos-13
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Dependencies
run: ./ci/osx-package.deps.sh
env:
MACOS_ARCH: "x86_64"
MAC_CERT_B64: ${{ secrets.MAC_CERT_B64 }}
MAC_CODESIGN_PASSWORD: ${{ secrets.MAC_CERT_PASSWORD }}

- uses: jcelerier/import-codesign-certs@master
with:
p12-file-base64: ${{ secrets.MAC_CERT_B64 }}
p12-password: ${{ secrets.MAC_CERT_PASSWORD }}

- name: Build
run: ./ci/osx-package.build.sh
env:
MACOS_ARCH: "x86_64"

- run: |
export GITTAGNOV=$(echo "$GITHUB_REF" | sed "s/.*\///;s/^v//")
export BUILD_ARTIFACTSTAGINGDIRECTORY=$PWD/staging
mkdir -p $BUILD_ARTIFACTSTAGINGDIRECTORY
source ci/osx-package.deploy.sh
env:
MACOS_ARCH: "x86_64"
MAC_ALTOOL_PASSWORD: ${{ secrets.MAC_ALTOOL_PASSWORD }}
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: macos-intel
path: |
staging/*.*
- name: Continuous
uses: softprops/action-gh-release@v2
if: github.event_name != 'pull_request'
with:
name: "Continuous"
tag_name: "continuous"
body: ""
append_body: true
generate_release_notes: false
files: |
staging/*.*
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request'
with:
body: ""
append_body: true
generate_release_notes: false
files: |
staging/*.*
brew:
# Last X86 macos version supported by GH Actions
name: macOS (Release, Brew, Intel)
Expand Down
Loading

0 comments on commit 4c1fae4

Please sign in to comment.