mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-18 23:45:53 +08:00
disable non mac build
This commit is contained in:
parent
8dac95b7cc
commit
03a016d4ce
128
.github/workflows/build_all.yml
vendored
128
.github/workflows/build_all.yml
vendored
@ -47,9 +47,9 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-20.04
|
# - os: ubuntu-20.04
|
||||||
- os: ubuntu-24.04
|
# - os: ubuntu-24.04
|
||||||
- os: windows-latest
|
# - os: windows-latest
|
||||||
- os: macos-14
|
- os: macos-14
|
||||||
arch: arm64
|
arch: arm64
|
||||||
uses: ./.github/workflows/build_check_cache.yml
|
uses: ./.github/workflows/build_check_cache.yml
|
||||||
@ -58,64 +58,64 @@ jobs:
|
|||||||
arch: ${{ matrix.arch }}
|
arch: ${{ matrix.arch }}
|
||||||
build-deps-only: ${{ inputs.build-deps-only || false }}
|
build-deps-only: ${{ inputs.build-deps-only || false }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
flatpak:
|
# flatpak:
|
||||||
name: "Flatpak"
|
# name: "Flatpak"
|
||||||
container:
|
# container:
|
||||||
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-46
|
# image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-46
|
||||||
options: --privileged
|
# options: --privileged
|
||||||
volumes:
|
# volumes:
|
||||||
- /usr/local/lib/android:/usr/local/lib/android
|
# - /usr/local/lib/android:/usr/local/lib/android
|
||||||
- /usr/share/dotnet:/usr/share/dotnet
|
# - /usr/share/dotnet:/usr/share/dotnet
|
||||||
- /opt/ghc:/opt/ghc1
|
# - /opt/ghc:/opt/ghc1
|
||||||
- /usr/local/share/boost:/usr/local/share/boost1
|
# - /usr/local/share/boost:/usr/local/share/boost1
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
variant:
|
# variant:
|
||||||
- arch: x86_64
|
# - arch: x86_64
|
||||||
runner: ubuntu-24.04
|
# runner: ubuntu-24.04
|
||||||
- arch: aarch64
|
# - arch: aarch64
|
||||||
runner: ubuntu-24.04-arm
|
# runner: ubuntu-24.04-arm
|
||||||
runs-on: ${{ matrix.variant.runner }}
|
# runs-on: ${{ matrix.variant.runner }}
|
||||||
env:
|
# env:
|
||||||
date:
|
# date:
|
||||||
ver:
|
# ver:
|
||||||
ver_pure:
|
# ver_pure:
|
||||||
steps:
|
# steps:
|
||||||
- name: "Remove unneeded stuff to free disk space"
|
# - name: "Remove unneeded stuff to free disk space"
|
||||||
run:
|
# run:
|
||||||
rm -rf /usr/local/lib/android/* /usr/share/dotnet/* /opt/ghc1/* "/usr/local/share/boost1/*"
|
# rm -rf /usr/local/lib/android/* /usr/share/dotnet/* /opt/ghc1/* "/usr/local/share/boost1/*"
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
- name: Get the version and date
|
# - name: Get the version and date
|
||||||
run: |
|
# run: |
|
||||||
ver_pure=$(grep 'set(SoftFever_VERSION' version.inc | cut -d '"' -f2)
|
# ver_pure=$(grep 'set(SoftFever_VERSION' version.inc | cut -d '"' -f2)
|
||||||
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
|
# if [[ "${{ github.event_name }}" == "pull_request" ]]; then
|
||||||
ver="PR-${{ github.event.number }}"
|
# ver="PR-${{ github.event.number }}"
|
||||||
else
|
# else
|
||||||
ver=V$ver_pure
|
# ver=V$ver_pure
|
||||||
fi
|
# fi
|
||||||
echo "ver=$ver" >> $GITHUB_ENV
|
# echo "ver=$ver" >> $GITHUB_ENV
|
||||||
echo "ver_pure=$ver_pure" >> $GITHUB_ENV
|
# echo "ver_pure=$ver_pure" >> $GITHUB_ENV
|
||||||
echo "date=$(date +'%Y%m%d')" >> $GITHUB_ENV
|
# echo "date=$(date +'%Y%m%d')" >> $GITHUB_ENV
|
||||||
shell: bash
|
# shell: bash
|
||||||
- uses: flathub-infra/flatpak-github-actions/flatpak-builder@master
|
# - uses: flathub-infra/flatpak-github-actions/flatpak-builder@master
|
||||||
with:
|
# with:
|
||||||
bundle: OrcaSlicer-Linux-flatpak_${{ env.ver }}_${{ matrix.variant.arch }}.flatpak
|
# bundle: OrcaSlicer-Linux-flatpak_${{ env.ver }}_${{ matrix.variant.arch }}.flatpak
|
||||||
manifest-path: flatpak/io.github.softfever.OrcaSlicer.yml
|
# manifest-path: flatpak/io.github.softfever.OrcaSlicer.yml
|
||||||
cache: true
|
# cache: true
|
||||||
arch: ${{ matrix.variant.arch }}
|
# arch: ${{ matrix.variant.arch }}
|
||||||
upload-artifact: false
|
# upload-artifact: false
|
||||||
- name: Upload artifacts Flatpak
|
# - name: Upload artifacts Flatpak
|
||||||
uses: actions/upload-artifact@v4
|
# uses: actions/upload-artifact@v4
|
||||||
with:
|
# with:
|
||||||
name: OrcaSlicer-Linux-flatpak_${{ env.ver }}_${{ matrix.variant.arch }}.flatpak
|
# name: OrcaSlicer-Linux-flatpak_${{ env.ver }}_${{ matrix.variant.arch }}.flatpak
|
||||||
path: '/__w/OrcaSlicer/OrcaSlicer/OrcaSlicer-Linux-flatpak_${{ env.ver }}_${{ matrix.variant.arch }}.flatpak'
|
# path: '/__w/OrcaSlicer/OrcaSlicer/OrcaSlicer-Linux-flatpak_${{ env.ver }}_${{ matrix.variant.arch }}.flatpak'
|
||||||
- name: Deploy Flatpak to nightly release
|
# - name: Deploy Flatpak to nightly release
|
||||||
if: ${{github.ref == 'refs/heads/main'}}
|
# if: ${{github.ref == 'refs/heads/main'}}
|
||||||
uses: WebFreak001/deploy-nightly@v3.2.0
|
# uses: WebFreak001/deploy-nightly@v3.2.0
|
||||||
with:
|
# with:
|
||||||
upload_url: https://uploads.github.com/repos/SoftFever/OrcaSlicer/releases/137995723/assets{?name,label}
|
# upload_url: https://uploads.github.com/repos/SoftFever/OrcaSlicer/releases/137995723/assets{?name,label}
|
||||||
release_id: 137995723
|
# release_id: 137995723
|
||||||
asset_path: /__w/OrcaSlicer/OrcaSlicer/OrcaSlicer-Linux-flatpak_${{ env.ver }}_${{ matrix.variant.arch }}.flatpak
|
# asset_path: /__w/OrcaSlicer/OrcaSlicer/OrcaSlicer-Linux-flatpak_${{ env.ver }}_${{ matrix.variant.arch }}.flatpak
|
||||||
asset_name: OrcaSlicer-Linux-flatpak_${{ env.ver }}_${{ matrix.variant.arch }}.flatpak
|
# asset_name: OrcaSlicer-Linux-flatpak_${{ env.ver }}_${{ matrix.variant.arch }}.flatpak
|
||||||
asset_content_type: application/octet-stream
|
# asset_content_type: application/octet-stream
|
||||||
max_releases: 1 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted
|
# max_releases: 1 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted
|
||||||
|
Loading…
x
Reference in New Issue
Block a user