Skip to content

Commit

Permalink
Try to add freebsd target with docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Sep 21, 2024
1 parent 00ac63a commit 88b6dbb
Showing 1 changed file with 1 addition and 59 deletions.
60 changes: 1 addition & 59 deletions .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,58 +23,9 @@ jobs:
fail-fast: false
matrix:
target:
# - aarch64-apple-darwin
# - x86_64-apple-darwin
# - x86_64-pc-windows-msvc
# - aarch64-pc-windows-msvc
# - x86_64-unknown-linux-gnu
# - x86_64-unknown-linux-musl
# - aarch64-unknown-linux-gnu
# - armv7-unknown-linux-gnueabihf
# - riscv64gc-unknown-linux-gnu
# - loongarch64-unknown-linux-gnu
- x86_64-unknown-freebsd
extra: ['bin']
include:
# - target: aarch64-apple-darwin
# os: macos-latest
# target_rustflags: ''
# - target: x86_64-apple-darwin
# os: macos-latest
# target_rustflags: ''
# - target: x86_64-pc-windows-msvc
# extra: 'bin'
# os: windows-latest
# target_rustflags: ''
# - target: x86_64-pc-windows-msvc
# extra: msi
# os: windows-latest
# target_rustflags: ''
# - target: aarch64-pc-windows-msvc
# extra: 'bin'
# os: windows-latest
# target_rustflags: ''
# - target: aarch64-pc-windows-msvc
# extra: msi
# os: windows-latest
# target_rustflags: ''
# - target: x86_64-unknown-linux-gnu
# os: ubuntu-20.04
# target_rustflags: ''
# - target: x86_64-unknown-linux-musl
# os: ubuntu-20.04
# target_rustflags: ''
# - target: aarch64-unknown-linux-gnu
# os: ubuntu-20.04
# target_rustflags: ''
# - target: armv7-unknown-linux-gnueabihf
# os: ubuntu-20.04
# target_rustflags: ''
# - target: riscv64gc-unknown-linux-gnu
# os: ubuntu-20.04
# target_rustflags: ''
# - target: loongarch64-unknown-linux-gnu
# os: ubuntu-22.04
- target: x86_64-unknown-freebsd
os: ubuntu-22.04

Expand All @@ -101,18 +52,9 @@ jobs:

- name: Release Nu Binary
id: nu
run: sudo docker container run --rm
run: docker container run --rm
--volume ${{ github.workspace }}:/src
--user $(id --user):$(id --group)
--env OPENSSL_DIR=/usr/local/freebsd-13.2/usr
unixgeek2/rust-x86_64-freebsd:latest build --release --target x86_64-unknown-freebsd

# REF: https://github.com/marketplace/actions/gh-release
- name: Publish Archive
uses: softprops/action-gh-release@v2.0.8
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
draft: true
files: ${{ steps.nu.outputs.archive }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 88b6dbb

Please sign in to comment.