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

Use Arturo action in CI workflows #1651

Merged
merged 39 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
8ab226c
build update
drkameleon Jun 14, 2024
e7496f2
try introducing new CI super-workflow
drkameleon Jun 14, 2024
36825e5
run unit-tests too
drkameleon Jun 15, 2024
aad8e8a
trigger rebuild
drkameleon Jun 17, 2024
f7754a5
debugging
drkameleon Jun 17, 2024
742608c
undo printing
drkameleon Jun 17, 2024
bcbad9a
remove currency-related tests and see what happens...
drkameleon Jun 18, 2024
978ed98
re-enable currency-related unit-tests
drkameleon Jun 19, 2024
b41ed2d
debugging
drkameleon Jun 19, 2024
c632c37
trigger rebuild
drkameleon Jun 19, 2024
68e1019
rebuild
drkameleon Jun 19, 2024
f7d4ecb
minor fix(?)
drkameleon Jun 19, 2024
a005b32
and let's try again...
drkameleon Jun 19, 2024
cf4d1f8
fully qualify paths to unit-tests
drkameleon Jun 19, 2024
f11180f
better go with relative paths and make sure we are in Arturo's root f…
drkameleon Jun 19, 2024
cc526e1
build update
drkameleon Jun 19, 2024
45c896c
undo debugging output
drkameleon Jun 19, 2024
fa97c30
Merge branch 'master' into use-arturo-action-in-ci-workflows
drkameleon Jun 19, 2024
472d113
try embedding metadata
drkameleon Jun 20, 2024
52d59a5
trigger rebuild
drkameleon Jun 20, 2024
ab9130e
debugging
drkameleon Jun 20, 2024
dbabd2f
and another try...
drkameleon Jun 20, 2024
9ed6f96
trigger rebuild
drkameleon Jun 20, 2024
5344fa3
add `master-` for master builds
drkameleon Jun 20, 2024
61221ec
try incorporating branch name as well...
drkameleon Jun 20, 2024
fc8a09d
let's add `safe` + `web` modes as well
drkameleon Jun 21, 2024
cef8bb4
add further conditions to unit-test step
drkameleon Jun 21, 2024
32e7e49
trigger rebuild
drkameleon Jun 21, 2024
4b09c14
trigger rebuild
drkameleon Jun 21, 2024
1bd9937
add tests for FreeBSD (hopefully lol)
drkameleon Jun 22, 2024
c8d8926
trigger rebuild
drkameleon Jun 25, 2024
004af83
trigger rebuild
drkameleon Jun 26, 2024
0beb726
try integrating unit-tests in FreeBSD builds
drkameleon Jun 26, 2024
493f251
run without FreeBSD support
drkameleon Jun 28, 2024
af1cc5d
let's try renaming (?)
drkameleon Jun 28, 2024
8391d93
clean up names (kind-of)
drkameleon Jun 28, 2024
223d232
re-renamed
drkameleon Jun 28, 2024
b3e84f5
and again
drkameleon Jun 28, 2024
53e86ab
trigger rebuild
drkameleon Jun 28, 2024
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
69 changes: 69 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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 ..
3 changes: 2 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,5 @@ jobs:
run: |
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
./bin/arturo tools/tester.art
./bin/arturo tools/unitt-tester.art
./bin/arturo tools/unitt-tester.art

2 changes: 1 addition & 1 deletion version/build
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3150
3151
Loading