Skip to content

Commit

Permalink
fix macos sed, reduce build targets
Browse files Browse the repository at this point in the history
  • Loading branch information
carderne committed Apr 9, 2024
1 parent a100cdf commit f7047c1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/crates.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: crates

on:
push:
tags:
Expand Down
21 changes: 4 additions & 17 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: pypi

on:
push:
tags:
- "v*"
workflow_dispatch:

permissions:
contents: read
Expand All @@ -15,16 +16,6 @@ jobs:
platform:
- runner: ubuntu-latest
target: x86_64
- runner: ubuntu-latest
target: x86
- runner: ubuntu-latest
target: aarch64
- runner: ubuntu-latest
target: armv7
- runner: ubuntu-latest
target: s390x
- runner: ubuntu-latest
target: ppc64le
steps:
- uses: actions/checkout@v4
- name: set version
Expand Down Expand Up @@ -56,8 +47,6 @@ jobs:
platform:
- runner: windows-latest
target: x64
- runner: windows-latest
target: x86
steps:
- uses: actions/checkout@v4
- name: set version
Expand Down Expand Up @@ -87,8 +76,6 @@ jobs:
strategy:
matrix:
platform:
- runner: macos-latest
target: x86_64
- runner: macos-14
target: aarch64
steps:
Expand All @@ -97,8 +84,8 @@ jobs:
env:
RELEASE_TAG: ${{ github.ref }}
run: |
sed -i "s/0\\.0\\.999/${RELEASE_TAG##*\/v}/" Cargo.toml
sed -i "s/0\\.0\\.999/${RELEASE_TAG##*\/v}/" Cargo.lock
sed -i '' "s/0\\.0\\.999/${RELEASE_TAG##*\/v}/" Cargo.toml
sed -i '' "s/0\\.0\\.999/${RELEASE_TAG##*\/v}/" Cargo.lock
- uses: actions/setup-python@v5
with:
python-version: '3.12'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: test

on:
push:
branches: [ "main" ]
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ Still very very alpha and doesn't do most things that are necessary to be at all

Python bindings are a WIP using [PyO3](https://pyo3.rs);

Using [pest](https://pest.rs/) for parsing.
The libraries:
- [crates/bean-rs](https://crates.io/crates/bean-rs)
- [pypi/bean-rs](https://pypi.org/project/bean-rs/)

Planned features:
- [x] Parse beancount files
- [x] Parse beancount files using [pest](https://pest.rs/)
- [x] Stricter transaction keywords
- [x] Propagate line numbers for debugging
- [x] Calculate account balances
Expand Down

0 comments on commit f7047c1

Please sign in to comment.