mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 18:24:05 +02:00
workflow updates
This commit is contained in:
parent
a632bb28bb
commit
269efe015e
3 changed files with 18 additions and 24 deletions
|
|
@ -5,40 +5,37 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
checks:
|
checks:
|
||||||
runs-on: ubuntu-latest
|
runs-on: nix
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: cachix/install-nix-action@v27
|
- uses: https://codeberg.org/icewind/attic-action@v1
|
||||||
- uses: icewind1991/attic-action@v1
|
|
||||||
with:
|
with:
|
||||||
name: ci
|
name: link
|
||||||
instance: https://cache.icewind.me
|
instance: https://cache.icewind.link
|
||||||
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
||||||
- run: nix flake check --keep-going
|
- run: nix flake check --keep-going
|
||||||
|
|
||||||
semver:
|
semver:
|
||||||
runs-on: ubuntu-latest
|
runs-on: nix
|
||||||
needs: checks
|
needs: checks
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: cachix/install-nix-action@v27
|
- uses: https://codeberg.org/icewind/attic-action@v1
|
||||||
- uses: icewind1991/attic-action@v1
|
|
||||||
with:
|
with:
|
||||||
name: ci
|
name: link
|
||||||
instance: https://cache.icewind.me
|
instance: https://cache.icewind.link
|
||||||
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
||||||
- run: nix run .#semver-checks
|
- run: nix run .#semver-checks
|
||||||
|
|
||||||
check-schema:
|
check-schema:
|
||||||
runs-on: ubuntu-latest
|
runs-on: nix
|
||||||
needs: checks
|
needs: checks
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: cachix/install-nix-action@v25
|
- uses: https://codeberg.org/icewind/attic-action@v1
|
||||||
- uses: icewind1991/attic-action@v1
|
|
||||||
with:
|
with:
|
||||||
name: ci
|
name: link
|
||||||
instance: https://cache.icewind.me
|
instance: https://cache.icewind.link
|
||||||
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
||||||
- name: Generate schema
|
- name: Generate schema
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -9,33 +9,31 @@ permissions:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
matrix:
|
matrix:
|
||||||
runs-on: ubuntu-latest
|
runs-on: nix
|
||||||
outputs:
|
outputs:
|
||||||
cross-matrix: ${{ steps.set-matrix.outputs.cross-matrix }}
|
cross-matrix: ${{ steps.set-matrix.outputs.cross-matrix }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: cachix/install-nix-action@v27
|
|
||||||
- id: set-matrix
|
- id: set-matrix
|
||||||
run: |
|
run: |
|
||||||
echo "cross-matrix={\"include\":$(nix eval --json '.#lib.crossMatrix')}" | tee -a $GITHUB_OUTPUT
|
echo "cross-matrix={\"include\":$(nix eval --json '.#lib.crossMatrix')}" | tee -a $GITHUB_OUTPUT
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: nix
|
||||||
needs: [matrix]
|
needs: [matrix]
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix: ${{fromJson(needs.matrix.outputs.cross-matrix)}}
|
matrix: ${{fromJson(needs.matrix.outputs.cross-matrix)}}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: cachix/install-nix-action@v27
|
- uses: https://codeberg.org/icewind/attic-action@v1
|
||||||
- uses: icewind1991/attic-action@v1
|
|
||||||
with:
|
with:
|
||||||
name: ci
|
name: link
|
||||||
instance: https://cache.icewind.me
|
instance: https://cache.icewind.link
|
||||||
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
||||||
- run: nix build .#${{ matrix.target }}
|
- run: nix build .#${{ matrix.target }}
|
||||||
- name: Upload binary to release
|
- name: Upload binary to release
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: https://github.com/svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
file: result/bin/parse_demo${{ matrix.binary-suffix }}
|
file: result/bin/parse_demo${{ matrix.binary-suffix }}
|
||||||
|
|
@ -89,7 +89,6 @@ impl<'a, A: MessageHandler> DemoParser<'a, A> {
|
||||||
|
|
||||||
pub fn parse(self) -> Result<(Header, A::Output)> {
|
pub fn parse(self) -> Result<(Header, A::Output)> {
|
||||||
let (header, mut ticker) = self.ticker()?;
|
let (header, mut ticker) = self.ticker()?;
|
||||||
dbg!(&header);
|
|
||||||
while ticker.tick()? {
|
while ticker.tick()? {
|
||||||
// noop
|
// noop
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue