Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
ci: Move away from OpenSSL to rust-tls
Browse files Browse the repository at this point in the history
  • Loading branch information
C0D3-M4513R committed Feb 8, 2023
1 parent d46b2c5 commit a607c6b
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 219 deletions.
74 changes: 41 additions & 33 deletions .github/workflows/build.yml
Expand Up @@ -19,62 +19,70 @@ jobs:
- name: Done
run: exit 0
build:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
profile: ["release"] #"dev"
target: [i686-unknown-linux-gnu, i686-pc-windows-msvc, x86_64-apple-darwin, x86_64-pc-windows-msvc, x86_64-unknown-linux-gnu] #
target: [i686-unknown-linux-gnu, i686-pc-windows-gnu, x86_64-apple-darwin, x86_64-pc-windows-gnu, x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu]
include:
- os: ubuntu-latest
target: i686-unknown-linux-gnu
arch: i386
- os: windows-latest
target: i686-pc-windows-msvc
arch: i386
- os: ubuntu-latest
target: x86_64-apple-darwin
arch: amd64
- os: windows-latest
target: x86_64-pc-windows-msvc
arch: amd64
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
arch: amd64
- target: i686-unknown-linux-gnu
# install: gcc-multilib g++-multilib
# os: ubuntu-latest
- target: i686-pc-windows-gnu
# install: gcc-mingw-w64-i686
# os: ubuntu-latest
- target: x86_64-apple-darwin
# install:
# os: ubuntu-latest
- target: x86_64-pc-windows-gnu
# install: gcc-mingw-w64-x86-64
# os: ubuntu-latest
- target: x86_64-unknown-linux-gnu
# install: gcc-multilib g++-multilib
# os: ubuntu-latest
- target: aarch64-unknown-linux-gnu
# install: gcc-aarch64-linux-gnu
# os: ubuntu-latest

steps:
- name: Install OpenSSL
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo dpkg --print-architecture
sudo dpkg --print-foreign-architectures
sudo dpkg --add-architecture ${{ matrix.arch }}
sudo dpkg --print-architecture
sudo dpkg --print-foreign-architectures
sudo apt-get update
sudo apt-get install -y libssl-dev:${{ matrix.arch }}
- uses: Swatinem/rust-cache@v2
# - name: Install cross compilers
# if: ${{ matrix.os == 'ubuntu-latest' }}
# run: |
# sudo apt-get update
# sudo apt-get install -y ${{ matrix.install }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
profile: minimal
override: true
# profile: minimal
- uses: actions/checkout@v3
- name: Install cargo-zigbuild
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-zigbuild
- name: install zig
run: |
pip3 install ziglang
- uses: actions-rs/cargo@v1
with:
command: build
command: zigbuild
args: --target ${{ matrix.target }} --profile ${{ matrix.profile }} --package magma-scraper
- uses: actions/upload-artifact@v3
name: upload release artifact
if: ${{ matrix.profile == 'release' }}
with:
name: magma_scraper-${{ matrix.target}}-release
path: |
target/release/magma_scraper.*
target/${{ matrix.target }}/release/magma_scraper.*
target/release/magma_scraper*
target/${{ matrix.target }}/release/magma_scraper*
- uses: actions/upload-artifact@v3
name: upload dev artifact
if: ${{ matrix.profile == 'dev' }}
with:
name: magma_scraper-${{ matrix.target}}-dev-${{ matrix.feature }}
path: |
target/release/magma_scraper.*
target/${{ matrix.target }}/release/magma_scraper.*
target/debug/magma_scraper*
target/${{ matrix.target }}/debug/magma_scraper*

0 comments on commit a607c6b

Please sign in to comment.