Skip to content

Commit

Permalink
Adjust the runner tag
Browse files Browse the repository at this point in the history
  • Loading branch information
liangtie committed Dec 1, 2023
1 parent 604dfba commit a9d6635
Showing 1 changed file with 23 additions and 26 deletions.
49 changes: 23 additions & 26 deletions .github/workflows/kicad-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

jobs:
create_archive:
runs-on: macos-latest
runs-on: ARM64 macOS
steps:
- name: Get latest tag
uses: oprypin/find-latest-tag@v1
with:
repository: Liangtie/kicad-mac-builder
repository: kicad-huaqiu/kicad-mac-builder
releases-only: true
id: latest-release

Expand All @@ -27,38 +27,35 @@
# - name: Setup brew env
# run: ./ci/arm64-on-arm64/bootstrap-arm64-on-arm64.sh

- name: Build kicad dependency with brew
run: WX_SKIP_DOXYGEN_VERSION_CHECK=1 ./build.py --arch arm64 --target setup-kicad-dependencies
# - name: Build kicad dependency with brew
# run: WX_SKIP_DOXYGEN_VERSION_CHECK=1 ./build.py --arch arm64 --target setup-kicad-dependencies

- name: Cache brew pkgs
uses: actions/cache@v3
with:
key: brew_caches
restore-keys: brew_caches
path: |
~/Library/Caches/Homebrew
/opt/homebrew
# - name: Cache brew pkgs
# uses: actions/cache@v3
# with:
# key: brew_caches
# restore-keys: brew_caches
# path: |
# ~/Library/Caches/Homebrew
# /opt/homebrew

- name: Triggers a build
run: ./build.py --arch=arm64 --target package-kicad-unified --kicad-git-url https://gitlab.com/Liangtie/kicad.git --kicad-ref origin/dev

- name: Cache kicad build
uses: actions/cache@v3
with:
key: build_cache
restore-keys: build_cache
path: |
~/Library/Caches/Homebrew
/opt/homebrew
run: ./build.py --arch=arm64 --target package-kicad-unified --kicad-git-url https://gitlab.com/Liangtie/kicad.git --kicad-ref origin/dev --release_name test

- name: Show build content
run: ls -R dmg
# - name: Cache kicad build
# uses: actions/cache@v3
# with:
# key: build_cache
# restore-keys: build_cache
# path: |
# ~/Library/Caches/Homebrew
# /opt/homebrew

- name: Upload installer as asset to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./.out/kicad-dev7.0.8-x86_64.exe
asset_name: kicad-dev-${{ steps.latest-release.outputs.tag }}-x86_64.exe
file: ./build/dmg/kicad-unified-test.dmg
asset_name: kicad-unified-${{ steps.latest-release.outputs.tag }}-test.dmg
overwrite: true
tag: ${{ steps.latest-release.outputs.tag }}

0 comments on commit a9d6635

Please sign in to comment.