2727 - name : Checkout
2828 uses : actions/checkout@v5
2929
30+ - name : Install packages to build external dependencies
31+ run : |
32+ sudo apt-get update
33+ sudo apt-get install -y meson ninja-build nasm yasm build-essential autoconf automake libtool pkg-config yasm cmake
34+
35+ - name : Install Rust
36+ run : |
37+ rustup update stable
38+ rustup default stable
39+
40+ - name : Build with cargo
41+ run : cargo build --release
42+
3043 - name : Set version in Cargo.toml for Python compatibility
3144 if : startsWith(github.ref, 'refs/tags/')
3245 run : |
4255 echo "Updated Cargo.toml version to: $PYTHON_VERSION"
4356 grep "^version = " Cargo.toml
4457
45- - name : Install packages to build external dependencies
46- run : |
47- sudo apt-get update
48- sudo apt-get install -y meson ninja-build nasm yasm build-essential autoconf automake libtool pkg-config yasm cmake
49-
50- - name : Install Rust
51- run : |
52- rustup update stable
53- rustup default stable
54-
55- - name : Build with cargo
56- run : cargo build --release
57-
5858 - name : Install uv
5959 uses : astral-sh/setup-uv@v6
6060
8585 - name : Checkout
8686 uses : actions/checkout@v5
8787
88+ - name : Install packages to build external dependencies
89+ run : |
90+ brew update
91+ brew install meson nasm yasm automake autoconf libtool
92+
93+ - name : Install Rust
94+ run : |
95+ rustup update stable
96+ rustup default stable
97+
98+ - name : Build with cargo
99+ run : cargo build --release
100+
88101 - name : Set version in Cargo.toml for Python compatibility
89102 if : startsWith(github.ref, 'refs/tags/')
90103 run : |
@@ -101,19 +114,6 @@ jobs:
101114 echo "Updated Cargo.toml version to: $PYTHON_VERSION"
102115 grep "^version = " Cargo.toml
103116
104- - name : Install packages to build external dependencies
105- run : |
106- brew update
107- brew install meson nasm yasm automake autoconf libtool
108-
109- - name : Install Rust
110- run : |
111- rustup update stable
112- rustup default stable
113-
114- - name : Build with cargo
115- run : cargo build --release
116-
117117 - name : Install uv
118118 uses : astral-sh/setup-uv@v6
119119
0 commit comments