hython-cli 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,61 @@
1
+ name: Release Hython
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ permissions:
9
+ contents: write
10
+
11
+ jobs:
12
+ build-release:
13
+ name: Build (${{ matrix.target }})
14
+ runs-on: ${{ matrix.os }}
15
+ strategy:
16
+ matrix:
17
+ include:
18
+ - os: macos-latest
19
+ target: aarch64-apple-darwin
20
+ artifact_name: hython-aarch64-apple-darwin.tar.gz
21
+ - os: macos-13
22
+ target: x86_64-apple-darwin
23
+ artifact_name: hython-x86_64-apple-darwin.tar.gz
24
+ - os: ubuntu-latest
25
+ target: x86_64-unknown-linux-gnu
26
+ artifact_name: hython-x86_64-unknown-linux-gnu.tar.gz
27
+ - os: windows-latest
28
+ target: x86_64-pc-windows-msvc
29
+ artifact_name: hython-x86_64-pc-windows-msvc.zip
30
+
31
+ steps:
32
+ - name: Checkout repository
33
+ uses: actions/checkout@v4
34
+
35
+ - name: Install Rust toolchain
36
+ uses: dtolnay/rust-toolchain@stable
37
+ with:
38
+ targets: ${{ matrix.target }}
39
+
40
+ - name: Build release binary
41
+ run: cargo build --release --target ${{ matrix.target }}
42
+
43
+ - name: Package macOS / Linux
44
+ if: matrix.os != 'windows-latest'
45
+ run: |
46
+ cd target/${{ matrix.target }}/release
47
+ tar -czvf ../../../${{ matrix.artifact_name }} hython
48
+ cd ../../..
49
+
50
+ - name: Package Windows
51
+ if: matrix.os == 'windows-latest'
52
+ shell: bash
53
+ run: |
54
+ cd target/${{ matrix.target }}/release
55
+ 7z a ../../../${{ matrix.artifact_name }} hython.exe
56
+ cd ../../..
57
+
58
+ - name: Upload Release Asset
59
+ uses: softprops/action-gh-release@v2
60
+ with:
61
+ files: ${{ matrix.artifact_name }}
@@ -0,0 +1,7 @@
1
+ /target/
2
+ .venv/
3
+ *.pyc
4
+ __pycache__/
5
+ .DS_Store
6
+ .vscode/
7
+ pyrightconfig.json