Update #8
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: Smoke Tests | |
| on: | |
| push: | |
| branches: [ master, main ] | |
| pull_request: | |
| branches: [ master, main ] | |
| jobs: | |
| smoke-test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-22.04, macos-13] | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout Mason | |
| uses: actions/checkout@v4 | |
| - name: Set up build environment (Linux) | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential curl git | |
| - name: Set up build environment (macOS) | |
| if: runner.os == 'macOS' | |
| run: | | |
| # Ensure Xcode command line tools are available | |
| xcode-select --print-path | |
| - name: Display environment info | |
| run: | | |
| echo "OS: $(uname -s)" | |
| echo "Arch: $(uname -m)" | |
| git --version | |
| curl --version | |
| - name: Make mason executable | |
| run: | | |
| chmod +x ./mason | |
| chmod +x ./test/*.sh | |
| - name: Run unit tests | |
| run: | | |
| export PATH=$(pwd):${PATH} | |
| ./test/unit.sh | |
| - name: Test basic package install | |
| run: | | |
| export PATH=$(pwd):${PATH} | |
| ./mason install zlib 1.2.8 | |
| ./mason prefix zlib 1.2.8 | |
| - name: Test header-only package install | |
| run: | | |
| export PATH=$(pwd):${PATH} | |
| ./mason install variant 1.1.0 | |
| ./mason prefix variant 1.1.0 | |
| - name: Verify mason commands | |
| run: | | |
| export PATH=$(pwd):${PATH} | |
| ./mason --version | |
| ./mason env MASON_DIR |