Skip to content

Commit

Permalink
Removed Dockerfile and bumped support to Ubuntu 20
Browse files Browse the repository at this point in the history
  • Loading branch information
alters-mit committed Sep 12, 2023
1 parent 36a1057 commit 75ae5d9
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 80 deletions.
51 changes: 25 additions & 26 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,33 @@ on:

jobs:
publish-ubuntu:
name: Publish for Linux
runs-on: ubuntu-22.04
name: Publish for Linux and Windows
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-20.04
artifact_name: libfast_image_encoder.so
- os: windows-latest
artifact_name: fast_image_encoder.dll
steps:
- uses: actions/checkout@v3
- name: Docker build
working-directory: Docker
run: docker build -t ubuntu-18 .
- name: Docker run
working-directory: Docker
run: docker run -e TOKEN=${{ secrets.TOKEN }} -e VERSION=${{ inputs.version }} ubuntu-18
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.71.0
- name: cargo build
working-directory: rs/fast_image_encoder
run: cargo build --release
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.TOKEN }}
file: rs/fast_image_encoder/target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.artifact_name }}
tag: ${{ inputs.version }}
release_name: ${{ inputs.version }}
overwrite: true
publish-macos:
name: Publish for MacOS
runs-on: macos-latest
Expand Down Expand Up @@ -53,21 +70,3 @@ jobs:
publish-windows:
name: Publish for Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.71.0
- name: cargo build
working-directory: rs/fast_image_encoder
run: cargo build --release
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.TOKEN }}
file: rs/fast_image_encoder/target/release/fast_image_encoder.dll
asset_name: fast_image_encoder.dll
tag: ${{ inputs.version }}
release_name: ${{ inputs.version }}
overwrite: true
24 changes: 0 additions & 24 deletions Docker/dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- Reverted the option to flip raw image data because it's faster to do it on the GPU.
- Updated the Unity example to show how to flip the texture.
- Fixed the Ubuntu dockerfile.
- Removed Ubuntu dockerfile. Fast Image Encoder is now supported on Ubuntu 20 and up.

# 0.1.3

Expand Down
29 changes: 0 additions & 29 deletions py/upload.py

This file was deleted.

0 comments on commit 75ae5d9

Please sign in to comment.