-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The old external download and build server https://download.visicut.org/ is now replaced by GitHub's own features (Actions and Releases) https://github.com/t-oster/VisiCut/releases . (For a while, both will be available in parallel.) - Known limitation: `potrace` no longer included on Windows/Mac --> The "Vectorization" feature in VisiCut no longer works out-of-the-box on these systems. #717 - New: Linux AppImage (single executable "portable app") - Technical change: GitHub Actions build process no longer depends on VisicutBuilder
- Loading branch information
1 parent
a8f89b6
commit 8797012
Showing
5 changed files
with
76 additions
and
20 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 |
---|---|---|
@@ -1,24 +1,65 @@ | ||
name: Build | ||
run-name: ${{ github.actor }} builds using docker. The output is currently ignored | ||
|
||
on: | ||
push: | ||
branches_ignore: | ||
- gh-pages | ||
pull_request: | ||
branches_ignore: | ||
- gh-pages | ||
workflow_dispatch: | ||
|
||
jobs: | ||
Build: | ||
distribute: | ||
strategy: | ||
fail-fast: false | ||
|
||
matrix: | ||
target: | ||
- zip | ||
- windows-nsis | ||
- macos-bundle | ||
- linux-appimage | ||
- linux-checkinstall | ||
|
||
name: Distribute ${{ matrix.target }} | ||
runs-on: ubuntu-latest | ||
container: 'docker://registry.gitlab.com/t-oster/visicutbuildservice' | ||
|
||
steps: | ||
- name: Setup directories | ||
run: mkdir -p /app/build /app/output | ||
- name: Run build | ||
run: /app/build.sh | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: "recursive" | ||
fetch-depth: 0 | ||
|
||
- name: Build distribution | ||
run: | | ||
# we use a separate directory called output to "collect" all the build artifacts | ||
# this makes uploading the artifacts a *lot* easier | ||
mkdir output | ||
pushd output | ||
bash ../distribute/distribute-docker.sh ${{ matrix.target }} | ||
- name: Archive built files | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: output binaries | ||
path: | | ||
/app/output/** | ||
output/* | ||
upload: | ||
name: Create release and upload artifacts | ||
needs: | ||
- distribute | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v2 | ||
- name: Inspect directory after downloading artifacts | ||
run: ls -alFR | ||
- name: Create release and upload artifacts | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
wget https://github.com/TheAssassin/pyuploadtool/releases/download/20231223-1/pyuploadtool-x86_64.AppImage | ||
chmod +x pyuploadtool-x86_64.AppImage | ||
./pyuploadtool-x86_64.AppImage "output binaries"/*.* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
<localRepository>/tmp/.m2/repository</localRepository> | ||
</settings> |