1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-21 10:37:58 +03:00
Commit Graph

46 Commits

Author SHA1 Message Date
老刘
40b9c432a4 GHA: use Ubuntu-24.04 instead of kali-linux in WSL 2024-09-20 08:31:11 -04:00
老刘
1f210c95c2 GHA: use py3 instead of py2 in WSL 2024-09-20 08:31:11 -04:00
Joel Martin
f30f32fcaa Update to newer get-changed-files.
Include JS change to test that change list is correct/minimal.
2024-08-28 16:18:33 -05:00
Joel Martin
05ce97f3c7
PR template: fix typo 2024-08-27 15:06:55 -05:00
Joel Martin
6deaeb268f Add PR template. New impl checklist in template and FAQ 2024-08-27 15:04:47 -05:00
Joel Martin
3307f07dfa GHA: self-host by default. Skip jq, nasm, powershell, xslt, vbs
Xslt may never be able to do full self-hosted tests. Powershell succeeds
but doubles the total runtime for the GHA workflow.

We would definitely like jq, nasm, and possibly vbs to be fixed for
self-hosted tests.
Ticket tracking fixes: https://github.com/kanaka/mal/issues/662
2024-08-22 17:05:19 -05:00
Joel Martin
fd626a7317 GHA: add self-hosted step for windows jobs.
Add --no-pty to self-hosted vbs/vbscript TEST_OPTS
2024-08-22 15:51:24 -05:00
Joel Martin
12cb3fca2b GHA, ci.sh: dump debug log in separate step.
- In ci.sh just print the path to the debug log file on errors.
- In GHA workflow, dump the debug log in a separate final step if there
  were errors. This will make it more usable for tracking down errors.
2024-08-22 14:59:33 -05:00
老刘
b57cd56717 vbs: Handle cherry-pick conflicts 2024-08-15 09:15:44 -05:00
老刘
bb92d26d0f vbs: test step6 in github action success 2024-08-15 09:15:44 -05:00
老刘
bc1aeac4de vbs: test step6 argv_test in github action 2 2024-08-15 09:15:44 -05:00
老刘
9ae13142b2 vbs: test step6 in github action 2024-08-15 09:15:44 -05:00
老刘
5e51ea4b02 vbs: sudo apt update -y for WSL 2024-08-15 09:15:44 -05:00
老刘
2a4a97e2e4 vbs: install python2 for WSL 2024-08-15 09:15:44 -05:00
老刘
dd523b9a15 vbs: install make for WSL 2024-08-15 09:15:44 -05:00
老刘
6f75f874bb vbs: Use kali-linux instead of Ubuntu-24.0.4 2024-08-15 09:15:44 -05:00
老刘
750cb85c55 vbs: use wsl-bash instead of bash 2 2024-08-15 09:15:44 -05:00
老刘
71a465a5fb vbs: use wsl-bash instead of bash 2024-08-15 09:15:44 -05:00
老刘
1d1681852a vbs: ubuntu -> Ubuntu 2024-08-15 09:15:44 -05:00
老刘
ba7b80d0b9 vbs: import Vampire/setup-wsl 2024-08-15 09:15:44 -05:00
老刘
31fa6bc917 vbs: Merge branch 'kanaka:master' into master 2024-08-15 09:15:44 -05:00
老刘
eecd575b39 vbs: Removes the echos used by the debug github action 2024-08-15 09:15:44 -05:00
老刘
e935966a05 vbs: add hello world to yml for debugging 2024-08-15 09:15:44 -05:00
老刘
72ec0d6795 vbs: change the default shell of windows for github action to bash 2024-08-15 09:15:44 -05:00
老刘
7feb037abb vbs: update github action's cfg for windows test support 2024-08-15 09:15:44 -05:00
老刘
2766ec1b89 vbs: update github action's configuration for Windows support 2024-08-15 09:15:44 -05:00
Joel Martin
ce36490541 GHA: ensure self-host by checking prompt. 2024-08-13 14:59:18 -05:00
Joel Martin
ba0159031f GHA: add self-hosted workflow input. 2024-08-08 15:51:13 -05:00
Joel Martin
30dac1a7f3 GHA: update get-changed-file version and input name 2024-08-05 15:07:45 -05:00
Joel Martin
ee6c11da3b GHA: use default_base for get-changed-files
This is needed for new branches.
2024-08-03 11:32:58 -05:00
Joel Martin
3f7b28652b GHA: switch from set-output to env file.
The set-output mechanism is deprecated for security reasons so set
environment variable outputs in GITHUB_OUTPUT instead. Change
get-ci-matrix.py to output the env file settings to stdout and move all
debug output to stderr.
2024-08-02 11:10:12 -05:00
Joel Martin
69e570aeca GHA: Update versions of checkout/artifact/login actions 2024-08-02 11:10:12 -05:00
Joel Martin
5c979b5a19 GHA: add packages write permission. 2024-08-02 11:10:12 -05:00
Joel Martin
3e90e42e94 GHA: Update to ubuntu-24.04 runner/image. 2024-08-02 11:10:12 -05:00
Joel Martin
0a34968695 GHA: Update macos image version from 10.15 to 12
10.15 has been removed since Aug 2022 and 11 has also been removed.
2024-08-02 11:10:12 -05:00
Joel Martin
eef959fb82 Update get-changed-files action to v2. 2024-08-02 11:10:12 -05:00
Joel Martin
8f8608a989 ci.sh/GHA: Add docker-build-push step/action
A major maintainability issue for years has been that the CI assumes
that a docker image for the implementation exists in Docker's registry
(named kanaka/mal-test-IMPL). This means the upstream maintainers have
to be involved in the PR loop to build the implementation Dockerfile,
push to the docker registry and then have the PR submitter re-run CI.

To address this, in ci.sh, the docker-build-push action will try to pull
the image and then continue as normal. If the pull fails then it will
build the image and push it (if the build is running in the context of
the upstream repo's main branch) and then continue.

Also, this switches to using ghcr.io as the default repo for images
which will make image transfer more local (during CI) and hopefully
a fair bit faster (and avoid potential docker pull limits).

Add a steps to the GHA main workflow that do a docker login to ghcr.io
and then call `ci.sh docker-build-push ${IMPL}`.
2024-08-02 11:10:06 -05:00
Joel Martin
78d6dabcaf Makefile,ci.sh: use versioned images
Get a voom style git hash of the impl Dockerfile and use that as the
testing docker image version (rather than blank which implies "latest").
2024-08-01 12:49:51 -05:00
Joel Martin
69238ec858 ci.sh: prefix log/debug files with impl name. 2021-04-23 16:13:12 -05:00
Joel Martin
085cc2f026 github/ci.sh: enable and archive log/debug output 2021-04-23 14:31:31 -05:00
Joel Martin
68c66f5f01 github: separate steps for build,test,regress,perf 2021-04-23 14:31:31 -05:00
Joel Martin
cbb8b57319 Add user dispatchable workflow definition.
This adds a event trigger for 'workflow_dispatch' so that a user can
trigger, via the web UI, a build/test for a subset of implementations.
2021-04-21 14:23:30 -05:00
Joel Martin
021d107db7 Refactor Github Actions/Travis CI
- Dynamically generate a strategy matrix based on the list of changed
  files in this push/pull_request. If the changed files are restricted
  to implementations then only generate a matrix with those
  implementations. If the changes are to tests or other
  non-documentation files (runtest.py, IMPLS.yml, .github/*, etc) then
  run the full set. The matrix generation is done in get-ci-matrix.py.
- Split the implementation list for Github Actions out into a separate
  yaml file IMPLS.yml
- Reduce the travis file to just the OS X / XCode related builds that
  aren't supported on Github Actions.
- Rename the .travis_test.sh script to ci.sh since it is the general
  CI script used for both Travis CI and Github Actions.
2021-04-21 13:36:54 -05:00
Joel Martin
f6dbdfb0a4 Add prolog to github actions workflow. 2021-04-19 09:55:57 -05:00
Joel Martin
0baa2f6a8b github actions: run on pull_requests also. 2021-04-18 15:29:49 -05:00
Rosiney Gomes Pereira
69f2037009 feat: github actions pipeline 2021-04-17 17:48:13 -05:00