releases.txt #116
This file contains hidden or 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: compile | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| compile-norns: | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Pre-build dev container image and run build inside dev container | |
| uses: devcontainers/[email protected] | |
| with: | |
| imageName: ghcr.io/monome/norns-ci | |
| cacheFrom: ghcr.io/monome/norns-ci | |
| push: filter | |
| refFilterForPush: refs/heads/main | |
| runCmd: ./waf configure --release && ./waf build --release | |
| lint-lua: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install luacheck | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y lua5.3 liblua5.3-dev luarocks | |
| sudo luarocks --lua-version=5.3 install luacheck | |
| - name: lint lua code | |
| run: luacheck lua/ --codes | |
| clang-format-check: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install clang-format | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y clang-format | |
| - name: run clang-format script | |
| run: | | |
| chmod +x clang-format.sh | |
| ./clang-format.sh | |
| - name: check for formatting changes | |
| run: | | |
| if ! git diff --exit-code --quiet; then | |
| echo -e "❌ clang-format check - C/C++ code formatting needs attention" | |
| echo "" | |
| echo -e "\033[3mthese files requiring formatting\033[0m" | |
| git diff --name-only | grep -E '\.(c|cpp|h)$' | while read file; do | |
| echo "- $file" | |
| done | |
| echo "" | |
| echo -e "\033[3mto update formatting, run locally\033[0m" | |
| echo "./clang-format.sh" | |
| echo "git add ." | |
| echo "git commit -m 'fix: apply clang-format'" | |
| exit 1 | |
| else | |
| echo "✅ clang-format check - all C/C++ code is properly formatted" | |
| fi |