configure: Don't try to update submodules if git is not installed #2
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: Kernel binary build | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'src/**' | ||
- 'ext/**' | ||
- 'Makefile.static' | ||
- 'configure' | ||
- '.github/workflows/kernel.yml' | ||
jobs: | ||
kernel: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/lutoma/xelix/toolchain:latest | ||
volumes: | ||
- ${{ github.workspace }}:/src | ||
steps: | ||
- name: Check out git repository | ||
uses: actions/checkout@v4 | ||
submodules: 'recursive' | ||
- name: Configure sources | ||
run: ./configure | ||
- name: Compile kernel | ||
run: make | ||
- name: Upload binary artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: kernel-binary | ||
path: xelix.bin |