-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run nightly tests with new xmake versions.
- Loading branch information
1 parent
bcc717a
commit 7b1755b
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: CHERIoT RTOS Tests | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run-tests: | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/cheriot-platform/devcontainer:latest | ||
options: --user 1001 | ||
steps: | ||
- name: Checkout repository and submodules | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Build latest xmake | ||
run: | | ||
# Make sure that we don't accidentally use the installed version | ||
sudo apt remove -y xmake | ||
curl -fsSL https://xmake.io/shget.text | bash -s dev | ||
- name: Build tests | ||
run: | | ||
source ~/.xmake/profile | ||
xmake --version | ||
cd tests | ||
xmake f --board=${{ matrix.board }} --sdk=/cheriot-tools/ ${{ matrix.build-flags }} | ||
xmake | ||
- name: Run tests | ||
run: | | ||
source ~/.xmake/profile | ||
xmake --version | ||
cd tests | ||
xmake run |