forked from SoftFever/OrcaSlicer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from henrivdr/from_upstream_main
From upstream main to play1
- Loading branch information
Showing
1,906 changed files
with
107,935 additions
and
36,159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ARG BASE_IMAGE | ||
FROM ${BASE_IMAGE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: 2 | ||
updates: | ||
# Only care about major updates to github actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
ignore: # Only suggest major updates for built-in actions | ||
- dependency-name: "github/*" | ||
update-types: ["version-update:semver-patch", "version-update:semver-minor"] | ||
- dependency-name: "actions/*" | ||
update-types: ["version-update:semver-patch", "version-update:semver-minor"] | ||
# Docker dependencies | ||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
# no support for c/cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,21 +60,50 @@ jobs: | |
arch: ${{ matrix.arch }} | ||
build-deps-only: ${{ inputs.build-deps-only || false }} | ||
secrets: inherit | ||
# flatpak: | ||
# name: "Flatpak" | ||
# runs-on: ubuntu-latest | ||
# container: | ||
# image: bilelmoussaoui/flatpak-github-actions:gnome-45 | ||
# options: --privileged | ||
# steps: | ||
# # maybe i'm too dumb and fucked up to do CI. OH WELL :D -ppd | ||
# - name: "Remove unneeded stuff to free disk space" | ||
# run: | ||
# sudo rm -rf /usr/share/dotnet /opt/ghc "/usr/local/share/boost" "$AGENT_TOOLSDIRECTORY" | ||
# - uses: actions/checkout@v4 | ||
# - uses: flatpak/flatpak-github-actions/flatpak-builder@v6 | ||
# with: | ||
# bundle: orcaslicer.flatpak | ||
# manifest-path: flatpak/io.github.softfever.OrcaSlicer.yml | ||
# cache-key: flatpak-builder-${{ github.sha }} | ||
# cache: false | ||
flatpak: | ||
name: "Flatpak" | ||
runs-on: ubuntu-latest | ||
env: | ||
date: | ||
ver: | ||
ver_pure: | ||
container: | ||
image: bilelmoussaoui/flatpak-github-actions:gnome-46 | ||
options: --privileged | ||
volumes: | ||
- /usr/local/lib/android:/usr/local/lib/android | ||
- /usr/share/dotnet:/usr/share/dotnet | ||
- /opt/ghc:/opt/ghc1 | ||
- /usr/local/share/boost:/usr/local/share/boost1 | ||
steps: | ||
- name: "Remove unneeded stuff to free disk space" | ||
run: | ||
rm -rf /usr/local/lib/android/* /usr/share/dotnet/* /opt/ghc1/* "/usr/local/share/boost1/*" | ||
- uses: actions/checkout@v4 | ||
- name: Get the version and date | ||
run: | | ||
ver_pure=$(grep 'set(SoftFever_VERSION' version.inc | cut -d '"' -f2) | ||
if [[ "${{ github.event_name }}" == "pull_request" ]]; then | ||
ver="PR-${{ github.event.number }}" | ||
else | ||
ver=V$ver_pure | ||
fi | ||
echo "ver=$ver" >> $GITHUB_ENV | ||
echo "ver_pure=$ver_pure" >> $GITHUB_ENV | ||
echo "date=$(date +'%Y%m%d')" >> $GITHUB_ENV | ||
shell: bash | ||
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6 | ||
with: | ||
bundle: OrcaSlicer-Linux-flatpak_${{ env.ver }}.flatpak | ||
manifest-path: flatpak/io.github.softfever.OrcaSlicer.yml | ||
cache: true | ||
- name: Deploy Flatpak to nightly release | ||
if: ${{github.ref == 'refs/heads/main'}} | ||
uses: WebFreak001/[email protected] | ||
with: | ||
upload_url: https://uploads.github.com/repos/SoftFever/OrcaSlicer/releases/137995723/assets{?name,label} | ||
release_id: 137995723 | ||
asset_path: /__w/OrcaSlicer/OrcaSlicer/OrcaSlicer-Linux-flatpak_${{ env.ver }}.flatpak | ||
asset_name: OrcaSlicer-Linux-flatpak_${{ env.ver }}.flatpak | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.