diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000..556b0d45e0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,69 @@ +name: "CI" + +on: + push: + branches: + - 'master' + tags-ignore: + - '**' + pull_request: + paths-ignore: + - 'docs/*' + - '*.yml' + - '*.md' + - 'LICENSE' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - {name: "Linux (amd64 / full)", os: ubuntu-latest, arch: amd64, mode: full, shell: bash} + - {name: "Linux (amd64 / safe)", os: ubuntu-latest, arch: amd64, mode: safe, shell: bash} + - {name: "Linux (amd64 / mini)", os: ubuntu-latest, arch: amd64, mode: mini, shell: bash} + - {name: "Linux (arm64 / mini)", os: ubuntu-latest, arch: arm64, mode: mini, shell: bash} + - {name: "JS (web / mini)", os: ubuntu-latest, arch: amd64, mode: web, shell: bash} + - {name: "Windows (amd64 / full)", os: windows-latest, arch: amd64, mode: full, shell: "msys2 {0}"} + - {name: "Windows (amd64 / mini)", os: windows-latest, arch: amd64, mode: mini, shell: "msys2 {0}"} + - {name: "macOS (amd64 / full)", os: macOS-12, arch: amd64, mode: full, shell: bash} + - {name: "macOS (amd64 / mini)", os: macOS-12, arch: amd64, mode: mini, shell: bash} + - {name: "macOS (arm64 / full)", os: macos-latest, arch: arm64, mode: full, shell: bash} + - {name: "macOS (arm64 / mini)", os: macos-latest, arch: arm64, mode: mini, shell: bash} + + name: ${{ matrix.name }} + defaults: + run: + shell: ${{ matrix.shell }} + steps: + - name: Install Arturo + uses: arturo-lang/arturo-action@main + with: + token: ${{ secrets.GITHUB_TOKEN }} + mode: ${{ matrix.mode }} + arch: ${{ matrix.arch }} + src: ${{ github.ref }} + metadata: ${{ env.BRANCH_NAME }}-${{ github.sha }} + + - if: (matrix.mode != 'safe' && matrix.mode != 'web') && (matrix.os != 'ubuntu-latest' || matrix.arch != 'arm64') + name: Run tests (Old) + run: | + cd arturo + cat version/metadata + arturo -v + arturo tools/tester.art + cd .. + + - if: matrix.mode == 'full' && (matrix.os != 'ubuntu-latest' || matrix.arch != 'arm64') + name: Run tests (Unitt) + run: | + cd arturo + arturo tools/unitt-tester.art + cd .. \ No newline at end of file diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 531db53b37..c5ba42ce0c 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -125,4 +125,5 @@ jobs: run: | echo "${{ github.workspace }}/bin" >> $GITHUB_PATH ./bin/arturo tools/tester.art - ./bin/arturo tools/unitt-tester.art \ No newline at end of file + ./bin/arturo tools/unitt-tester.art + \ No newline at end of file diff --git a/version/build b/version/build index 53ddcc79c9..2f0a138e5f 100644 --- a/version/build +++ b/version/build @@ -1 +1 @@ -3150 \ No newline at end of file +3151 \ No newline at end of file