Skip to content

Commit 8dfabe4

Browse files
committed
Test cross build
1 parent 88ce8ee commit 8dfabe4

2 files changed

Lines changed: 122 additions & 112 deletions

File tree

.github/workflows/cross-build.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Test cross build
2+
3+
on:
4+
push:
5+
branches:
6+
- cross
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
build-binaries:
14+
needs: [create-release]
15+
runs-on:
16+
- self-hosted
17+
- ${{ matrix.os }}
18+
- X64
19+
# strategy:
20+
# fail-fast: false
21+
# matrix:
22+
# build: [linux, linux-arm64, freebsd]
23+
# include:
24+
# - build: linux
25+
# arch: amd64
26+
# os: Linux
27+
# target: x86_64-unknown-linux-gnu
28+
# - build: linux-arm64
29+
# arch: arm64
30+
# os: Linux
31+
# target: aarch64-unknown-linux-gnu
32+
# - build: freebsd
33+
# arch: amd64
34+
# os: Linux
35+
# target: x86_64-unknown-freebsd
36+
steps:
37+
# Store the version, stripping any v-prefix
38+
- name: Write release version
39+
run: |
40+
VERSION=${GITHUB_REF_NAME#v}
41+
echo Version: $VERSION
42+
echo "VERSION=$VERSION" >> $GITHUB_ENV
43+
44+
- name: Checkout
45+
uses: actions/checkout@v6
46+
with:
47+
submodules: recursive
48+
49+
- name: Test in FreeBSD
50+
uses: vmactions/freebsd-vm@v1
51+
with:
52+
pkg update && pkg install rust
53+
cargo -vV

0 commit comments

Comments
 (0)