Skip to content

Commit

Permalink
CI: update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vkhodygo committed Mar 25, 2023
1 parent 603c301 commit 9d21133
Show file tree
Hide file tree
Showing 15 changed files with 92 additions and 206 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ccpp_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:
hdiutil create -ov -fs HFS+ -volname ${{ github.event.repository.name }} -srcfolder "build/pack/${{ github.event.repository.name }}" temp.dmg
hdiutil convert temp.dmg -format UDZO -o ${{ github.event.repository.name }}.dmg
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v3
with:
name: nightly_macos.app
path: build/pack/${{ github.event.repository.name }}/${{ github.event.repository.name }}.app
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v3
with:
name: nightly_macos.dmg
path: ${{ github.event.repository.name }}.dmg
4 changes: 2 additions & 2 deletions .github/workflows/ccpp_mac_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
- name: build deps & slicer
run: ./BuildMacOS.sh -ia
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v3
with:
name: nightly_macos_arm_debug.dmg
path: build/${{ github.event.repository.name }}.dmg
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v3
with:
name: nightly_arm_macos.tar
path: build/${{ github.event.repository.name }}.tar
6 changes: 3 additions & 3 deletions .github/workflows/ccpp_mac_arm_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: macos-11

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: 'debug_macos'
- name: build deps & slicer
Expand All @@ -20,12 +20,12 @@ jobs:
working-directory: ./build
run: ls
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v3
with:
name: nightly_macos_arm_debug.dmg
path: build/${{ github.event.repository.name }}.dmg
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v3
with:
name: nightly_arm_macos.tar
path: build/${{ github.event.repository.name }}.tar
4 changes: 2 additions & 2 deletions .github/workflows/ccpp_mac_arm_rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
runs-on: macos-11

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: 'rc'
- name: build deps & slicer
run: ./BuildMacOS.sh -ia
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v3
with:
name: rc_arm_macos.tar
path: build/${{ github.event.repository.name }}.tar
6 changes: 3 additions & 3 deletions .github/workflows/ccpp_mac_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: macos-12

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: 'debug_macos'
- name: build deps & slicer
Expand All @@ -28,12 +28,12 @@ jobs:
working-directory: ./build
run: ls
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v3
with:
name: nightly_macos_debug.dmg
path: build/${{ github.event.repository.name }}.dmg
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v3
with:
name: nightly_macos.tar
path: ${{ github.event.repository.name }}.tar
6 changes: 3 additions & 3 deletions .github/workflows/ccpp_mac_rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: macos-12

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: 'rc'
- name: build deps & slicer
Expand Down Expand Up @@ -61,12 +61,12 @@ jobs:
codesign -vvv --deep --strict ./build/pack/SuperSlicer/SuperSlicer.app
codesign -dvv ./build/pack/SuperSlicer/SuperSlicer.app
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v3
with:
name: rc_macos.app
path: build/pack/SuperSlicer/SuperSlicer.app
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v3
with:
name: rc_macos.dmg
path: build/SuperSlicer.dmg
31 changes: 19 additions & 12 deletions .github/workflows/ccpp_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,43 @@ on:
jobs:
build:

runs-on: ubuntu-18.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3

- name: update apt cache & install packages
run: sudo apt update && sudo apt -y install git cmake libgtk-3-dev libglew-dev libudev-dev libdbus-1-dev gettext

- name: update submodule profiles
working-directory: ./resources/profiles
run: git submodule update --init
- name: change date in version
run: sed -i "s/+UNKNOWN/_$(date '+%F')/" version.inc

- name: update clock
run: sudo hwclock -s
- name: update apt
run: sudo apt update
- name: install gtk2 glew
run: sudo apt install libgtk2.0-dev libglew-dev libudev-dev libdbus-1-dev

- name: change date in version
run: sed -i "s/+UNKNOWN/_$(date '+%F')/" version.inc

- name: build deps & slicer
run: ./BuildLinux.sh -dgs
run: ./BuildLinux.sh -ds

- name: make .pot
working-directory: ./build
run: make gettext_make_pot

- name: build tar & appimage
working-directory: ./build
run: src/BuildLinuxImage.sh -i

- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v3
with:
name: nightly_linux_gtk2.tar
name: nightly_linux.tar
path: build/${{ github.event.repository.name }}.tar

- name: Upload appimage
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}-gtk2.AppImage
name: ${{ github.event.repository.name }}.AppImage
path: build/${{ github.event.repository.name }}_ubu64.AppImage
34 changes: 21 additions & 13 deletions .github/workflows/ccpp_ubuntu_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,46 @@ on:
jobs:
build:

runs-on: ubuntu-18.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: 'debug_ubuntu'

- name: update apt cache & install packages
run: sudo apt update && sudo apt -y install git cmake libgtk-3-dev libglew-dev libudev-dev libdbus-1-dev gettext libssl-dev libcurl4-openssl-dev

- name: update submodule profiles
working-directory: ./resources/profiles
run: git submodule update --init
- name: change date in version
run: sed -i "s/+UNKNOWN/_$(date '+%F')/" version.inc

- name: update clock
run: sudo hwclock -s
- name: update apt
run: sudo apt update
- name: install gtk2 glew
run: sudo apt install libgtk2.0-dev libglew-dev libudev-dev libdbus-1-dev libssl-dev libcurl4-openssl-dev

- name: change date in version
run: sed -i "s/+UNKNOWN/_$(date '+%F')/" version.inc

- name: build deps & slicer
run: ./BuildLinux.sh -bdgs
run: ./BuildLinux.sh -bds

- name: make .pot
working-directory: ./build
run: make gettext_make_pot

- name: build tar & appimage
working-directory: ./build
run: src/BuildLinuxImage.sh -i

- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v3
with:
name: nightly_linux_gtk2.tar
name: nightly_linux.tar
path: build/${{ github.event.repository.name }}.tar

- name: Upload appimage
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}-gtk2.AppImage
name: ${{ github.event.repository.name }}.AppImage
path: build/${{ github.event.repository.name }}_ubu64.AppImage

46 changes: 0 additions & 46 deletions .github/workflows/ccpp_ubuntu_gtk3.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/ccpp_ubuntu_gtk3_debug.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/ccpp_ubuntu_gtk3_rc.yml

This file was deleted.

Loading

0 comments on commit 9d21133

Please sign in to comment.