Add RtlTimeFieldsToTime and RtlTimeToTimeFields tests #48
Workflow file for this run
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
name: GitHub CI | |
on: | |
push: | |
paths-ignore: | |
- '.github/*' | |
- '.github/*_TEMPLATE/**' | |
- '*.md' | |
- '*.yml' | |
pull_request: | |
paths-ignore: | |
- '.github/*' | |
- '.github/*_TEMPLATE/**' | |
- '*.md' | |
- '*.yml' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout nxdk | |
uses: actions/checkout@v3 | |
with: | |
repository: XboxDev/nxdk | |
submodules: recursive | |
- name: Set xbox_kernel_test_suite dir | |
id: xkts | |
run: echo "dir=projects/xbox_kernel_test_suite" >> $GITHUB_OUTPUT | |
- name: Checkout xbox_kernel_test_suite | |
uses: actions/checkout@v3 | |
with: | |
path: ${{ steps.xkts.outputs.dir }} | |
- name: Install dependencies | |
run: | | |
sudo apt-get -y update | |
sudo apt-get -y install lld llvm | |
- name: Build | |
working-directory: ${{ steps.xkts.outputs.dir }} | |
run: | | |
eval $(../../bin/activate -s) # setup nxdk variables into environment | |
make -j$(nproc) | |
- name: Set artifact + release parameters | |
id: parameters | |
run: | | |
export file=default.xbe | |
echo "name=$file" >> $GITHUB_OUTPUT | |
echo "path=${{ steps.xkts.outputs.dir }}/bin/$file" >> $GITHUB_OUTPUT | |
echo "tag=$(date +'%Y%m%d%H%M%S')-${GITHUB_SHA:0:7}" >> $GITHUB_OUTPUT | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ steps.parameters.outputs.name }} | |
path: ${{ steps.parameters.outputs.path }} | |
if-no-files-found: error | |
- name: Create release | |
if: | | |
github.event.action != 'pull_request' && | |
github.ref == 'refs/heads/master' && | |
github.repository == 'Cxbx-Reloaded/xbox_kernel_test_suite' | |
env: | |
GH_REPO: ${{ github.repository }} # Required because nxdk is the workspace repository | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: gh release create ${{ steps.parameters.outputs.tag }} ${{ steps.parameters.outputs.path }} --target $GITHUB_SHA |