package for release #146
Workflow file for this run
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
name: package for release | |
on: | |
workflow_dispatch: {} | |
jobs: | |
# linux: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: 🛠 Install system dependencies | |
# run: | | |
# sudo apt-get update -y -qq | |
# sudo apt-get install -y libegl1-mesa-dev libgl1-mesa-dri libxcb-xfixes0-dev ffmpeg libavcodec-dev libavformat-dev libavfilter-dev libavdevice-dev libopus-dev | |
# - name: 🔧 Install the rust toolchain | |
# uses: dtolnay/rust-toolchain@stable | |
# | |
# - name: 📥 Checkout repo | |
# uses: actions/checkout@v4 | |
# | |
# - name: 📦 Package | |
# run: cargo run --bin package_for_release | |
# | |
# - uses: actions/upload-artifact@v4 | |
# with: | |
# name: smelter_linux_x86_64.tar.gz | |
# path: smelter_linux_x86_64.tar.gz | |
# | |
# - uses: actions/upload-artifact@v4 | |
# with: | |
# name: smelter_with_web_renderer_linux_x86_64.tar.gz | |
# path: smelter_with_web_renderer_linux_x86_64.tar.gz | |
# | |
# linux-aarch64: | |
# runs-on: ubuntu-24.04-arm | |
# steps: | |
# - name: 🛠 Install system dependencies | |
# run: | | |
# sudo apt-get update -y -qq | |
# sudo apt-get install -y libegl1-mesa-dev libgl1-mesa-dri libxcb-xfixes0-dev ffmpeg libavcodec-dev libavformat-dev libavfilter-dev libavdevice-dev libopus-dev curl git build-essential libssl-dev pkg-config libclang-dev | |
# sudo rm -rf /var/lib/apt/lists/* | |
# - name: 🔧 Install the rust toolchain | |
# uses: dtolnay/rust-toolchain@stable | |
# | |
# - name: 📥 Checkout repo | |
# uses: actions/checkout@v4 | |
# | |
# - name: 📦 Package | |
# run: cargo run --bin package_for_release | |
# | |
# - uses: actions/upload-artifact@v4 | |
# with: | |
# name: smelter_linux_aarch64.tar.gz | |
# path: smelter_linux_aarch64.tar.gz | |
# | |
macos_x86_64: | |
runs-on: macos-13 | |
steps: | |
- name: 🛠 Install system dependencies | |
run: brew install ffmpeg | |
- name: 🔧 Install the rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: 📥 Checkout repo | |
uses: actions/checkout@v4 | |
- name: 📦 Package | |
run: cargo run --bin package_for_release | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: smelter_darwin_x86_64.tar.gz | |
path: smelter_darwin_x86_64.tar.gz | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: smelter_with_web_renderer_darwin_x86_64.tar.gz | |
path: smelter_with_web_renderer_darwin_x86_64.tar.gz | |
# macos-aarch64: | |
# runs-on: macos-14 | |
# steps: | |
# - name: 🛠 Install system dependencies | |
# run: brew install ffmpeg | |
# | |
# - name: 🔧 Install the rust toolchain | |
# uses: dtolnay/rust-toolchain@stable | |
# | |
# - name: 📥 Checkout repo | |
# uses: actions/checkout@v4 | |
# | |
# - name: 📦 Package | |
# run: cargo run --bin package_for_release | |
# | |
# - uses: actions/upload-artifact@v4 | |
# with: | |
# name: smelter_darwin_aarch64.tar.gz | |
# path: smelter_darwin_aarch64.tar.gz | |
# | |
# - uses: actions/upload-artifact@v4 | |
# with: | |
# name: smelter_with_web_renderer_darwin_aarch64.tar.gz | |
# path: smelter_with_web_renderer_darwin_aarch64.tar.gz | |
# | |
# docker-amd64: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: 📥 Checkout repo | |
# uses: actions/checkout@v4 | |
# | |
# - name: 🛠️ Setup Docker | |
# run: | | |
# echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
# | |
# - name: 🔨 Build Smelter image | |
# run: | | |
# docker buildx build --platform linux/amd64 -t ghcr.io/software-mansion/smelter:${{ github.sha }} -f build_tools/docker/slim.Dockerfile . | |
# | |
# - name: 📤 Upload image | |
# run: docker push ghcr.io/software-mansion/smelter:${{ github.sha }} | |
# | |
# docker-arm64: | |
# needs: docker-amd64 | |
# runs-on: ubuntu-24.04-arm | |
# steps: | |
# - name: 📥 Checkout repo | |
# uses: actions/checkout@v4 | |
# | |
# - name: 🛠️ Setup Docker | |
# run: | | |
# echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
# | |
# - name: 🎣 Pull Smleter AMD64 image | |
# run: | | |
# docker pull ghcr.io/software-mansion/smelter:${{ github.sha }} | |
# echo "AMD64_IMAGE_ID=$(docker inspect --format='{{index .RepoDigests 0}}' ghcr.io/software-mansion/smelter:${{ github.sha }})" >> "$GITHUB_ENV" | |
# | |
# - name: 🔨 Build Smelter ARM64 image | |
# run: | | |
# docker buildx build --platform linux/arm64 -t ghcr.io/software-mansion/smelter:${{ github.sha }} -f build_tools/docker/slim.Dockerfile . | |
# | |
# - name: ⏩ Push ARM64 image | |
# run: | | |
# docker push ghcr.io/software-mansion/smelter:${{ github.sha }} | |
# echo "ARM64_IMAGE_ID=$(docker inspect --format='{{index .RepoDigests 0}}' ghcr.io/software-mansion/smelter:${{ github.sha }})" >> "$GITHUB_ENV" | |
# | |
# - name: 🔗 Merge AMD64 and ARM64 images | |
# run: | | |
# docker manifest create ghcr.io/software-mansion/smelter:${{ github.sha }} ${{ env.AMD64_IMAGE_ID }} ${{ env.ARM64_IMAGE_ID }} | |
# docker manifest annotate ghcr.io/software-mansion/smelter:${{ github.sha }} ${{ env.AMD64_IMAGE_ID }} --arch amd64 | |
# docker manifest annotate ghcr.io/software-mansion/smelter:${{ github.sha }} ${{ env.ARM64_IMAGE_ID }} --arch arm64 | |
# | |
# - name: 📤 Upload image | |
# run: docker manifest push ghcr.io/software-mansion/smelter:${{ github.sha }} | |
# | |
# docker-with-web-renderer-amd64: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: 📥 Checkout repo | |
# uses: actions/checkout@v4 | |
# | |
# - name: 🛠️ Setup Docker | |
# run: | | |
# echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
# | |
# - name: 🔨 Build Smelter with Web Renderer image | |
# run: | | |
# docker buildx build --platform linux/amd64 -t ghcr.io/software-mansion/smelter:${{ github.sha }}-web-renderer -f build_tools/docker/full.Dockerfile . | |
# | |
# - name: 📤 Upload image | |
# run: docker push ghcr.io/software-mansion/smelter:${{ github.sha }}-web-renderer | |
# | |
# docker-with-web-renderer-arm64: | |
# needs: docker-with-web-renderer-amd64 | |
# runs-on: ubuntu-24.04-arm | |
# steps: | |
# - name: 📥 Checkout repo | |
# uses: actions/checkout@v4 | |
# | |
# - name: 🛠️ Setup Docker | |
# run: | | |
# echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
# | |
# - name: 🎣 Pull Smleter AMD64 image | |
# run: | | |
# docker pull ghcr.io/software-mansion/smelter:${{ github.sha }}-web-renderer | |
# echo "AMD64_IMAGE_ID=$(docker inspect --format='{{index .RepoDigests 0}}' ghcr.io/software-mansion/smelter:${{ github.sha }}-web-renderer)" >> "$GITHUB_ENV" | |
# | |
# - name: 🔨 Build Smelter ARM64 image | |
# run: | | |
# docker buildx build --platform linux/arm64 -t ghcr.io/software-mansion/smelter:${{ github.sha }}-web-renderer -f build_tools/docker/full.Dockerfile . | |
# | |
# - name: ⏩ Push ARM64 image | |
# run: | | |
# docker push ghcr.io/software-mansion/smelter:${{ github.sha }}-web-renderer | |
# echo "ARM64_IMAGE_ID=$(docker inspect --format='{{index .RepoDigests 0}}' ghcr.io/software-mansion/smelter:${{ github.sha }}-web-renderer)" >> "$GITHUB_ENV" | |
# | |
# - name: 🔗 Merge AMD64 and ARM64 images | |
# run: | | |
# docker manifest create ghcr.io/software-mansion/smelter:${{ github.sha }}-web-renderer ${{ env.AMD64_IMAGE_ID }} ${{ env.ARM64_IMAGE_ID }} | |
# docker manifest annotate ghcr.io/software-mansion/smelter:${{ github.sha }}-web-renderer ${{ env.AMD64_IMAGE_ID }} --arch amd64 | |
# docker manifest annotate ghcr.io/software-mansion/smelter:${{ github.sha }}-web-renderer ${{ env.ARM64_IMAGE_ID }} --arch arm64 | |
# | |
# - name: 📤 Upload image | |
# run: docker manifest push ghcr.io/software-mansion/smelter:${{ github.sha }}-web-renderer |