1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 10:14:06 +02:00

workflow updates

This commit is contained in:
Robin Appelman 2025-05-25 18:21:41 +02:00
commit d9b711add6
4 changed files with 22 additions and 28 deletions

View file

@ -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: |

View file

@ -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 }}

8
flake.lock generated
View file

@ -44,11 +44,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1748035164, "lastModified": 1748204267,
"narHash": "sha256-PMWOFLi3oU/Eb+y4a0MlHS0IcUZ+UFCoGmA1Q7DnoW4=", "narHash": "sha256-daZUxND4UxWe6VCqh7PUuxpySqcYrUfZH8uCATUoQq8=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "e6d5d797b3d2c738309152f2545518b2b117f72b", "rev": "5164809bd99f06ddaa08afec014fce800ec93ce3",
"revCount": 48, "revCount": 49,
"type": "git", "type": "git",
"url": "https://codeberg.org/icewind/mill-scale.git" "url": "https://codeberg.org/icewind/mill-scale.git"
}, },

View file

@ -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
} }