Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create linux-musl.yml #2548

Merged
merged 6 commits into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .github/workflows/linux-musl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: ci-linux-musl

on:
workflow_dispatch:
pull_request:
push:
release:
types: [published]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
build:
runs-on: ubuntu-24.04
container: alpine:edge
permissions:
contents: read
strategy:
fail-fast: false
matrix:
build_method: ["python", "cmake"]

steps:
- name: Host - checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Install ninja build optional dependencies
run: apk update && apk add -u --no-cache python3 build-base cmake re2c

- name: Configure ninja build
if: matrix.build_method == 'cmake'
run: cmake -B build -D CMAKE_BUILD_TYPE="Release"

- name: Cmake Build ninja
if: matrix.build_method == 'cmake'
run: cmake --build build --parallel --config Release

- name: Cmake test ninja
if: matrix.build_method == 'cmake'
run: build/ninja_test --gtest_color=yes

- name: Python Build ninja
if: matrix.build_method == 'python'
run: python3 configure.py --bootstrap --verbose

- name: Python test ninja
if: matrix.build_method == 'python'
run: |
./ninja all
python3 misc/ninja_syntax_test.py
# python3 misc/output_test.py

- name: Move ninja binary
if: matrix.build_method == 'cmake'
run: mv -f build/ninja ninja

- name: ninja-ninja --version
run: ./ninja --version >> $GITHUB_STEP_SUMMARY

- name: binary info via file
run: file ./ninja >> $GITHUB_STEP_SUMMARY
Loading