Nathaniel Mitchell
da2ea9532f
Remove old docker images that are not active and add some new ones
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2023-01-24 16:39:46 -08:00
brentholtsclaw
e2de1b2e98
Enable codeql on linux driver code
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-12-14 12:44:09 -08:00
brentholtsclaw
e4b1ecaf86
Modify workflows to install pip requirements and use python3
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-12-05 16:34:48 -08:00
LGTM Migrator
8876a8520b
Add CodeQL workflow for GitHub code scanning
2022-12-05 11:27:52 -08:00
Nathaniel Mitchell
124251eef3
Remove Ubuntu v18.04 from test due to deprecation
...
https://github.com/actions/runner-images/issues/6002
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2022-12-05 10:54:44 -08:00
Nicolas Iooss
b6f6841dfb
Update GitHub Actions to use the new $GITHUB_OUTPUT file
...
GitHub is deprecating the use of `echo "::set-output ...` to define
output variables in workflow commands:
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Replace these commands with `echo "{name}={value}" >> $GITHUB_OUTPUT`.
This feature is also used in `actions/upload-artifact`, which was
updated accordingly in version 3:
https://github.com/actions/upload-artifact/releases/tag/v3.1.1
While at it, also upgrade `actions/checkout` and `actions/setup-python`
to fix a Node 12 deprecation warning:
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
2022-12-01 11:01:31 -08:00
Nathaniel Mitchell
82cf698c99
Update tests.yml to remove EOLed Debian 8
2022-11-30 15:56:44 -08:00
Nathaniel Mitchell
7e61ec8d6e
Update tests.yml to include python 3.6 in validation
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2022-08-25 16:50:42 -07:00
Nicolas Iooss
6ad51831f8
Update the versions used in Github Actions CI
...
- Add Alpine 3.14, 3.15 and 3.16 to test building with more Linux kernel
versions
- Add CentOS Stream 8 and 9, using images from quay.io, as they are not
on Docker Hub (this introduces a new variable `distro.image_prefix`)
- Add Debian 11 and adjust kernel version detection, as
`dpkg --status linux-headers-amd64` now returns something in
parentheses, `Depends: linux-headers-5.10.0-15-amd64 (= 5.10.120-1)`
- Add Ubuntu 22.04 and use it as the base environment for tests using
Docker
- Add Python 3.10 (this requires quoting the version, otherwise GitHub
parses the version as "3.1" instead)
- Update fallback DKMS version to the latest release, v3.0.5
Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org >
2022-08-24 16:36:31 -07:00
Nicolas Iooss
cebf53dee5
Configure GitHub Actions to stay on Windows Server 2019 for now
...
GitHub recently upgraded their `windows-latest` environment to Windows
Server 2022:
https://github.blog/changelog/2022-01-11-github-actions-jobs-running-on-windows-latest-are-now-running-on-windows-server-2022/
This environment includes Visual Studio 2022 (cf.
https://github.com/actions/virtual-environments/blob/7f1bc9ed1e3cff016136346e8f12eec301c6c11f/images/win/Windows2022-Readme.md#visual-studio-enterprise-2022
), which is currently not supported by the WDK (Windows Driver Kit):
https://docs.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk#download-and-install-the-windows-11-wdk
Because of this incompatibility, force the workflows to stay on Windows
Server 2019 environments for now.
Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org >
2022-02-16 08:24:09 -08:00
Nicolas Iooss
50978b0c9e
Remove Ubuntu 20.10 from GitHub Actions CI
...
Ubuntu removed packages for Ubuntu 20.10 (Groovy Gorilla) on
http://archive.ubuntu.com/ubuntu/dists/ , so the container no longer
works. This is normal, because this version was not a LTS (Long Term
Support) release.
Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org >
2022-01-05 12:35:15 -08:00
Nicolas Iooss
cd5068b92e
Revert "Backport patch for DKMS 3.0 regression"
...
This reverts commit 67912f14b9 . Arch Linux
updated package dkms with the fix for the regression. So the fix is no
longer needed in GitHub Action workflow.
Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org >
2021-11-29 10:43:03 -08:00
Nicolas Iooss
67912f14b9
Backport patch for DKMS 3.0 regression
...
DKMS 3.0 broke `dkms add drivers/linux` (cf.
https://github.com/chipsec/chipsec/pull/1305#issuecomment-970693380 ).
This was fixed upstream in https://github.com/dell/dkms/pull/178 .
While waiting for a new DKMS release which would be applied by Arch
Linux maintainers, it is possible to work around the issue by removing
some checks from the `dkms` script. Add a `sed` command which does that.
Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org >
2021-11-17 14:55:08 -08:00
Nathaniel Mitchell
1a553949e1
Remove ubuntu16.04 per support being removed.
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2021-09-22 10:18:44 -07:00
Nathaniel Mitchell
569a7113af
Warn and force user to interact if running python2 in an OS
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2021-08-26 10:46:55 -07:00
Nicolas Iooss
41ff0d4530
Configure GitHub Actions to test some features
...
Introduce some configuration for GitHub Action jobs which:
* Build chipsec's Linux kernel module for several Linux distributions
(using Docker containers).
* Build chipsec's Windows kernel driver (using the Visual Studio
installation provided in Windows images of GitHub Actions) and run
`python setup.py install` on Windows.
* Install chipsec in some Ubuntu virtual machines and run
`python setup.py install` and `chipsec_main`.
For now, only x86_64 architecture is tested.
2021-05-18 20:07:47 -07:00