Skip to content

Commit

Permalink
try linux
Browse files Browse the repository at this point in the history
  • Loading branch information
supermerill committed Oct 14, 2024
2 parents 86a4e64 + 1ca8bfb commit 8a11230
Show file tree
Hide file tree
Showing 22 changed files with 201 additions and 247 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/ccpp_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,26 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: build deps & slicer
run: ./BuildMacOS.sh
- name: copy zstd
run: cp /usr/local/opt/zstd/lib/libzstd.1.dylib ./build/pack/${{ github.event.repository.name }}/${{ github.event.repository.name }}.app/Contents/MacOS/libzstd.1.dylib
- name: relink zstd
run: install_name_tool -change /usr/local/opt/zstd/lib/libzstd.1.dylib @executable_path/libzstd.1.dylib ./build/pack/${{ github.event.repository.name }}/${{ github.event.repository.name }}.app/Contents/MacOS/${{ github.event.repository.name }}
- name: create the dmg
- name: check autoconf version
run: autoconf --version
- name: update automake for mpfr
run: |
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
curl -O -L http://ftpmirror.gnu.org/automake/automake-1.16.5.tar.gz
tar -xzf automake-1.16.5.tar.gz
cd automake-*
./configure
make
sudo make install
automake --version
- name: build deps & slicer
run: ./BuildMacOS.sh -dsi
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v4.0.0
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@v4.0.0
with:
name: nightly_macos.dmg
path: ${{ github.event.repository.name }}.dmg
19 changes: 16 additions & 3 deletions .github/workflows/ccpp_mac_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,28 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: install autoconf
run: brew install autoconf
- name: check autoconf version
run: autoconf --version
- name: update automake for mpfr
run: |
curl -O -L http://ftpmirror.gnu.org/automake/automake-1.16.5.tar.gz
tar -xzf automake-1.16.5.tar.gz
cd automake-*
./configure
make
sudo make install
automake --version
- name: build deps & slicer
run: ./BuildMacOS.sh -ia
run: ./BuildMacOS.sh -adsi
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v4.0.0
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@v4.0.0
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 @@ -15,17 +15,17 @@ jobs:
with:
ref: 'debug_macos'
- name: build deps & slicer
run: ./BuildMacOS.sh -bia
run: ./BuildMacOS.sh -badsi
- name: ls build
working-directory: ./build
run: ls
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v4.0.0
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@v4.0.0
with:
name: nightly_arm_macos.tar
path: build/${{ github.event.repository.name }}.tar
21 changes: 17 additions & 4 deletions .github/workflows/ccpp_mac_arm_rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,31 @@ jobs:
runs-on: macos-14

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: 'rc'
- name: install autoconf
run: brew install autoconf
- name: check autoconf version
run: autoconf --version
- name: update automake for mpfr
run: |
curl -O -L http://ftpmirror.gnu.org/automake/automake-1.16.5.tar.gz
tar -xzf automake-1.16.5.tar.gz
cd automake-*
./configure
make
sudo make install
automake --version
- name: build deps & slicer
run: ./BuildMacOS.sh -ia
run: ./BuildMacOS.sh -adsi
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v4.0.0
with:
name: rc_arm_macos.dmg
path: build/${{ github.event.repository.name }}.dmg
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v4.0.0
with:
name: rc_arm_macos.tar
path: build/${{ github.event.repository.name }}.tar
14 changes: 3 additions & 11 deletions .github/workflows/ccpp_mac_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,17 @@ jobs:
with:
ref: 'debug_macos'
- name: build deps & slicer
run: ./BuildMacOS.sh -b
- name: copy zstd
run: cp /usr/local/opt/zstd/lib/libzstd.1.dylib ./build/pack/${{ github.event.repository.name }}/${{ github.event.repository.name }}.app/Contents/MacOS/libzstd.1.dylib
- name: relink zstd
run: install_name_tool -change /usr/local/opt/zstd/lib/libzstd.1.dylib @executable_path/libzstd.1.dylib ./build/pack/${{ github.event.repository.name }}/${{ github.event.repository.name }}.app/Contents/MacOS/${{ github.event.repository.name }}
- name: create the dmg
run: |
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
run: ./BuildMacOS.sh -bdsi
- name: tar the pack
working-directory: ./build
run: ls
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v4.0.0
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@v4.0.0
with:
name: nightly_macos.tar
path: ${{ github.event.repository.name }}.tar
27 changes: 16 additions & 11 deletions .github/workflows/ccpp_mac_rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,28 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: build deps & slicer
run: ./BuildMacOS.sh
- name: copy zstd
run: cp /usr/local/opt/zstd/lib/libzstd.1.dylib ./build/pack/${{ github.event.repository.name }}/${{ github.event.repository.name }}.app/Contents/MacOS/libzstd.1.dylib
- name: relink zstd
run: install_name_tool -change /usr/local/opt/zstd/lib/libzstd.1.dylib @executable_path/libzstd.1.dylib ./build/pack/${{ github.event.repository.name }}/${{ github.event.repository.name }}.app/Contents/MacOS/${{ github.event.repository.name }}
- name: create the dmg
with:
ref: 'rc'
- name: check autoconf version
run: autoconf --version
- name: update automake for mpfr
run: |
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
curl -O -L http://ftpmirror.gnu.org/automake/automake-1.16.5.tar.gz
tar -xzf automake-1.16.5.tar.gz
cd automake-*
./configure
make
sudo make install
automake --version
- name: build deps & slicer
run: ./BuildMacOS.sh -dsi
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v4.0.0
with:
name: rc_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@v4.0.0
with:
name: rc_macos.dmg
path: ${{ github.event.repository.name }}.dmg
14 changes: 4 additions & 10 deletions .github/workflows/ccpp_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,15 @@ jobs:
run: sudo apt update
- name: install gtk2 glew
run: sudo apt install libgtk2.0-dev libglew-dev libudev-dev libdbus-1-dev gettext
- name: build deps & slicer
run: ./BuildLinux.sh -dgs
- name: make .pot
working-directory: ./build
run: make gettext_make_pot
- name: build tar & appimage
working-directory: ./build
run: src/BuildLinuxImage.sh -i
- name: build deps & slicer, tar & appimage
run: ./BuildLinux.sh -dgsi
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v4.0.0
with:
name: nightly_linux_gtk2.tar
path: build/${{ github.event.repository.name }}.tar
- name: Upload appimage
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v4.0.0
with:
name: ${{ github.event.repository.name }}-gtk2.AppImage
path: build/${{ github.event.repository.name }}_ubu64.AppImage
17 changes: 4 additions & 13 deletions .github/workflows/ccpp_ubuntu_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ jobs:
uses: jwlawson/actions-setup-cmake@v1.13
with:
cmake-version: '3.16.x'
- 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
Expand All @@ -29,21 +26,15 @@ jobs:
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 gettext
- name: build deps & slicer
run: ./BuildLinux.sh -bdgs
- name: make .pot
working-directory: ./build
run: make gettext_make_pot
- name: build tar & appimage
working-directory: ./build
run: src/BuildLinuxImage.sh -i
- name: build deps & slicer, tar & appimage
run: ./BuildLinux.sh -bdgsi
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v4.0.0
with:
name: nightly_linux_gtk2.tar
path: build/${{ github.event.repository.name }}.tar
- name: Upload appimage
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v4.0.0
with:
name: ${{ github.event.repository.name }}-gtk2.AppImage
path: build/${{ github.event.repository.name }}_ubu64.AppImage
17 changes: 4 additions & 13 deletions .github/workflows/ccpp_ubuntu_gtk3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
uses: jwlawson/actions-setup-cmake@v1.13
with:
cmake-version: '3.16.x'
- 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
Expand All @@ -30,21 +27,15 @@ jobs:
run: sudo apt update
- name: install gtk3 glew
run: sudo apt install libgtk-3-dev libglew-dev libudev-dev libdbus-1-dev gettext
- name: build deps & slicer
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: build deps & slicer, tar & appimage
run: ./BuildLinux.sh -dsi
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v4.0.0
with:
name: nightly_linux_gtk3.tar
path: build/${{ github.event.repository.name }}.tar
- name: Upload appimage
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v4.0.0
with:
name: ${{ github.event.repository.name }}-gtk3.AppImage
path: build/${{ github.event.repository.name }}_ubu64.AppImage
17 changes: 4 additions & 13 deletions .github/workflows/ccpp_ubuntu_gtk3_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ jobs:
uses: jwlawson/actions-setup-cmake@v1.13
with:
cmake-version: '3.16.x'
- 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
Expand All @@ -29,21 +26,15 @@ jobs:
run: sudo apt update
- name: install gtk3 glew
run: sudo apt install libgtk-3-dev libglew-dev libudev-dev libdbus-1-dev libssl-dev libcurl4-openssl-dev gettext
- name: build deps & slicer
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: build deps & slicer, tar & appimage
run: ./BuildLinux.sh -bdsi
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v4.0.0
with:
name: nightly_linux_gtk3.tar
path: build/${{ github.event.repository.name }}.tar
- name: Upload appimage
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v4.0.0
with:
name: ${{ github.event.repository.name }}-gtk3.AppImage
path: build/${{ github.event.repository.name }}_ubu64.AppImage
Expand Down
17 changes: 4 additions & 13 deletions .github/workflows/ccpp_ubuntu_gtk3_rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ jobs:
uses: jwlawson/actions-setup-cmake@v1.13
with:
cmake-version: '3.16.x'
- 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
Expand All @@ -31,21 +28,15 @@ jobs:
run: sudo apt update
- name: install gtk3 glew
run: sudo apt install libgtk-3-dev libglew-dev libudev-dev libdbus-1-dev gettext
- name: build deps & slicer
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: build deps & slicer, tar & appimage
run: ./BuildLinux.sh -dsi
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v4.0.0
with:
name: rc_linux_gtk3.tar
path: build/${{ github.event.repository.name }}.tar
- name: Upload appimage
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v4.0.0
with:
name: rc-${{ github.event.repository.name }}-gtk3.AppImage
path: build/${{ github.event.repository.name }}_ubu64.AppImage
Loading

0 comments on commit 8a11230

Please sign in to comment.