Skip to content

Output runestone memory report #457

Output runestone memory report

Output runestone memory report #457

Workflow file for this run

name: Build and Test
on: [push]
jobs:
download-libclang-dll:
runs-on: ubuntu-24.04
name: 'Download and Extract libclang.dll'
steps:
- uses: actions/checkout@v4
with:
repository: PucklaJ/odin-libclang
ref: '19.1.7'
- uses: extractions/setup-just@v3
name: Install just
- name: Download libclang.dll
run: just download-library '' 'build/'
shell: bash
- name: Upload libclang.dll
uses: actions/upload-artifact@v4
with:
name: libclang.dll
path: ${{ github.workspace }}/build/libclang.dll
if-no-files-found: error
overwrite: true
compression-level: 0
retention-days: 1
build-and-test:
runs-on: ${{ matrix.os }}
needs: download-libclang-dll
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, ubuntu-24.04-arm, windows-2022, macos-13, macos-14]
name: ${{ matrix.os == 'ubuntu-24.04' && 'linux-x86_64' || matrix.os == 'ubuntu-24.04-arm' && 'linux-aarch64' || matrix.os == 'macos-13' && 'macos-x86_64' || matrix.os == 'macos-14' && 'macos-aarch64' || 'windows-x86_64' }}
env:
os: ${{ startsWith(matrix.os, 'ubuntu') && 'linux' || startsWith(matrix.os, 'macos') && 'macos' || 'windows' }}
arch: ${{ matrix.os == 'ubuntu-24.04-arm' && 'aarch64' || matrix.os == 'macos-14' && 'aarch64' || 'x86_64' }}
plat: ${{ matrix.os == 'ubuntu-24.04' && 'linux-x86_64' || matrix.os == 'ubuntu-24.04-arm' && 'linux-aarch64' || matrix.os == 'macos-13' && 'macos-x86_64' || matrix.os == 'macos-14' && 'macos-aarch64' || 'windows-x86_64' }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: extractions/setup-just@v3
name: Install just
- name: Install libclang, llvm, sdl2, sdl2_image
run: |
sudo apt update
sudo apt -y install libclang-18-dev libllvm18 libsdl2-dev libsdl2-image-dev
sudo ln -rfs /usr/lib/${{ env.arch }}-linux-gnu/libclang-18.so /usr/lib/${{ env.arch }}-linux-gnu/libclang.so
sudo ln -rfs /usr/lib/llvm-18/lib/libLLVM.so.1 /usr/lib/libLLVM-18.so.18.1
if: env.os == 'linux'
- name: Download libclang.dll
if: env.os == 'windows'
uses: actions/download-artifact@v4
with:
name: libclang.dll
merge-multiple: true
path: build
- name: Install llvm, sdl2, sdl2_image
run: brew install llvm@19 sdl2 sdl2_image
if: env.os == 'macos'
- name: Install apt-fast
run: '/bin/bash -c "$(curl -sL https://git.io/vokNn)"'
if: env.plat == 'linux-aarch64'
- uses: laytan/setup-odin@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
release: dev-2025-06
- uses: ilammy/msvc-dev-cmd@v1
if: env.os == 'windows'
- name: Test
uses: nick-fields/retry@v3
with:
command: just test
timeout_minutes: 2
retry_wait_seconds: 1
max_attempts: 1
- name: examples (olived, tiled)
run: just example olivec example tiled
- name: Build runic release
run: just
if: env.os == 'windows' || env.os == 'macos'
- name: Build runic AppImage
run: |
mkdir appimagetool_bin/
just install-appimagetool appimagetool_bin/
export PATH=$(pwd)/appimagetool_bin/:$PATH
just package
if: env.os == 'linux'
- name: Build runic installer
uses: Minionguyjpro/[email protected]
if: env.os == 'windows'
with:
path: windows_installer.iss
- name: Rename runic artifact
run: mv build/runic build/runic.${{ env.plat }}
if: env.os == 'macos'
- uses: actions/upload-artifact@v4
if: env.os == 'macos'
with:
name: runic-${{ env.plat }}
path: ${{ github.workspace }}/build/runic.${{ env.plat }}
if-no-files-found: warn
overwrite: true
compression-level: 0
- uses: actions/upload-artifact@v4
if: env.os == 'linux'
with:
name: runic-${{ env.plat }}
path: ${{ github.workspace }}/build/package/*
if-no-files-found: warn
overwrite: true
compression-level: 0
- uses: actions/upload-artifact@v4
if: env.os == 'windows'
with:
name: runic-${{ env.plat }}
path: ${{ github.workspace }}/build/package/*
if-no-files-found: warn
overwrite: true
compression-level: 0
create-release:
runs-on: ubuntu-24.04
needs: build-and-test
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
pattern: 'runic*'
merge-multiple: true
path: artifacts
- name: List all artifacts
run: ls -la --color=always artifacts
- uses: ncipollo/release-action@v1
with:
artifacts: 'artifacts/*'
body: |
Automatically generated by Github Actions Run ${{ github.run_id }}
generateReleaseNotes: true
makeLatest: true