Skip to content

Commit 9f32d0a

Browse files
committed
only build release binaries for the main platforms
1 parent a5c4ca6 commit 9f32d0a

File tree

2 files changed

+22
-27
lines changed

2 files changed

+22
-27
lines changed

.github/workflows/publish.yml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,42 +17,44 @@ jobs:
1717
- build: linux-x86
1818
os: ubuntu-latest
1919
target: x86_64-unknown-linux-gnu
20-
- build: linux-i686
21-
os: ubuntu-latest
22-
target: i686-unknown-linux-gnu
23-
- build: linux-aarch64
24-
os: ubuntu-latest
25-
target: aarch64-unknown-linux-gnu
2620
- build: windows-x86
2721
os: windows-latest
2822
target: x86_64-pc-windows-msvc
29-
- build: windows-i686
30-
os: windows-latest
31-
target: i686-pc-windows-msvc
32-
- build: windows-aarch64
33-
os: windows-latest
34-
target: aarch64-pc-windows-msvc
35-
- build: macos-x86
36-
os: macos-latest
37-
target: x86_64-apple-darwin
23+
#- build: windows-i686
24+
# os: windows-latest
25+
# target: i686-pc-windows-msvc
26+
#- build: windows-aarch64
27+
# os: windows-latest
28+
# target: aarch64-pc-windows-msvc
29+
#- build: macos-x86
30+
# os: macos-latest
31+
# target: x86_64-apple-darwin
3832
- build: macos-aarch64
3933
os: macos-latest
4034
target: aarch64-apple-darwin
4135
runs-on: ${{ matrix.os }}
4236
steps:
4337
- uses: actions/checkout@v4
38+
- name: Install packages (Linux)
39+
if: runner.os == 'Linux'
40+
uses: awalsh128/[email protected]
41+
with:
42+
packages: libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev libgtk-3-dev # libgtk-3-dev is used by rfd
43+
version: 1.0
44+
execute_install_scripts: true
4445
- uses: actions/setup-java@v4
4546
with:
4647
distribution: "microsoft"
4748
java-version: "21"
4849
cache: "gradle"
4950
- uses: gradle/actions/wrapper-validation@v3
50-
- uses: houseabsolute/actions-rust-cross@v1
51+
- name: Install Rust
52+
uses: dtolnay/rust-toolchain@stable
5153
with:
52-
command: build
53-
target: ${{ matrix.target }}
54-
args: "--locked --release"
55-
strip: true
54+
toolchain: stable
55+
- uses: Swatinem/rust-cache@v2
56+
- run: rustup target add ${{ matrix.target }}
57+
- run: cargo build --release --target ${{ matrix.target }}
5658
- run: mv "target/${{ matrix.target }}/release/ornithe-installer-rs" "target/${{ matrix.target }}/release/ornithe-installer-rs.bin"
5759
if: runner.os != 'Windows'
5860
- uses: actions/upload-artifact@v4

Cargo.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,3 @@ winres = "0.1.11"
3232
[profile.release]
3333
lto = true
3434
opt-level = 's'
35-
36-
[build]
37-
pre-build = [
38-
"dpkg --add-architecture $CROSS_DEB_ARCH",
39-
"apt-get update && apt-get --assume-yes install libxcb-render0-dev:$CROSS_DEB_ARCH libxcb-shape0-dev:$CROSS_DEB_ARCH libxcb-xfixes0-dev:$CROSS_DEB_ARCH libxkbcommon-dev:$CROSS_DEB_ARCH libssl-dev:$CROSS_DEB_ARCH libgtk-3-dev:$CROSS_DEB_ARCH"
40-
41-
]

0 commit comments

Comments
 (0)