Pull ZenLang #44
This file contains hidden or 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: Rust | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| paths: | |
| - '.cargo/**' | |
| - 'src/**' | |
| - '*.toml' | |
| - '*.sh' | |
| - '.github/**' | |
| pull_request: | |
| branches: [ "master" ] | |
| paths: | |
| - '.cargo/**' | |
| - 'src/**' | |
| - '*.toml' | |
| - '*.sh' | |
| - '.github/**' | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Build | |
| run: | | |
| rustup default nightly | |
| rustup target add x86_64-unknown-uefi | |
| ./build.sh | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact | |
| path: target/x86_64-unknown-uefi/debug/zen_os.efi | |
| publish: | |
| name: Publish | |
| runs-on: ubuntu-latest | |
| needs: [build] | |
| steps: | |
| - name: Authenticate GitHub CLI | |
| run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token | |
| - name: Download artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact | |
| - name: Update Nightly Release | |
| uses: andelf/nightly-release@main | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: nightly-release | |
| name: 'Nightly Release' | |
| body: | | |
| Automated nightly release for commit ${{ github.sha }}. | |
| files: | | |
| zen_os.efi |