Replace deprecated stdlib feature #748
Workflow file for this run
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: "CI" | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| types: [opened, synchronize] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: "Test" | |
| runs-on: ${{ | |
| (matrix.os == 'linux') && (matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest') || | |
| (matrix.os == 'macos') && (matrix.arch == 'arm64' && 'macos-latest' || 'macOS-15-intel') || | |
| (matrix.os == 'windows') && 'windows-latest' || | |
| 'ubuntu-latest' }} | |
| # TODO(workflows/test) FreeBSD workflow gets stuck | |
| # Not sure if it has to do with the VM setup on GitHub Actions | |
| # or something related to the implementation of Grafito, | |
| # but we'll have to investigate this. | |
| # labels: workflows, bug | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - {os: linux, arch: amd64} | |
| - {os: linux, arch: arm64} | |
| # - {os: freebsd, arch: amd64} | |
| - {os: macos, arch: amd64} | |
| - {os: macos, arch: arm64} | |
| - {os: windows, arch: amd64} | |
| defaults: | |
| run: | |
| shell: ${{ | |
| (matrix.os == 'freebsd') && 'freebsd {0}' || | |
| (matrix.os == 'windows') && 'msys2 {0}' || | |
| 'bash' }} | |
| steps: | |
| - name: "Checkout sources" | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup Arturo | |
| uses: arturo-lang/setup-arturo@v2 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| os: ${{ matrix.os }} | |
| arch: ${{ matrix.arch }} | |
| - name: Run unit tests | |
| run: | | |
| cd $GITHUB_WORKSPACE | |
| arturo -e "inspect sys\deps" | |
| arturo tests/test1.art |