Skip to content

Commit

Permalink
Merge: local changes (#16)
Browse files Browse the repository at this point in the history
* chore(actions): removed useless actions from repository

* chore(ci): added gitlab ci config file

* Merge: Checked local changes

* Update README.md

* Merge: merge local changes

* fix(compose): docker compose fixes

* Fix: fixed docker compose config

* Merge: local changes

* merge(local): merged local changes

* Merged: merged local changes

* Improve: moved topics config to db (#11)

* Update production.toml

* chore(rmq): replaced direct to fanout exchange kind

* Improve: Merge local changes

* chore(git): updated .gitignore file

* fix(rss): return current datetime on parsing rss item error

* fix(rss): return err from spawned thread if rss error

* chore(tracing): updated tracing msg formatting

* chore(tracing): updated tracing msg formatting

* fix(datetime): added dateparser crate

* hotfix(docker): added coping configs to container

* chore(docker): optimized docker image size

* chore(git): updated .gitignore

* chore(git): added actions to build release

* chore(git): added actions to build release

* chore(docs): updated README.md file

* chore(docs): updated actions

---------

Co-authored-by: Bread White <[email protected]>
  • Loading branch information
breadrock1 and Bread White authored Jan 6, 2025
1 parent 513c91f commit f91bd2d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 32 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,33 +50,3 @@ jobs:
- uses: actions/checkout@v4
- name: Test
run: cargo test --all --verbose

build-platforms:
if: github.event_name == 'push'
strategy:
matrix:
platform:
- os-name: Linux-x86_64
runs-on: ubuntu-20.04
target: x86_64-unknown-linux-gnu

- os-name: Windows-x86_64
runs-on: windows-latest
target: x86_64-pc-windows-msvc

- os-name: macOS-x86_64
runs-on: macOS-latest
target: x86_64-apple-darwin

runs-on: ${{ matrix.platform.runs-on }}
permissions: write-all
needs: [test]
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: ${{ matrix.platform.target }}
- name: Add rustup target ${{ matrix.platform.target }}
run: rustup target add ${{ matrix.platform.target }}
- name: Build app for ${{matrix.platform.target }}
run: cargo build --release --target ${{ matrix.platform.target }}
27 changes: 25 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,40 @@ jobs:

build:
name: build project
runs-on: ubuntu-latest
runs-on: ${{ matrix.platform.runs-on }}
needs: create-release
permissions:
contents: write
contents: write-all
strategy:
matrix:
platform:
- os-name: Linux-x86_64
runs-on: ubuntu-20.04
target: x86_64-unknown-linux-gnu

- os-name: Windows-x86_64
runs-on: windows-latest
target: x86_64-pc-windows-msvc

- os-name: macOS-x86_64
runs-on: macOS-latest
target: x86_64-apple-darwin

steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: ${{ matrix.platform.target }}

- name: Add rustup target ${{ matrix.platform.target }}
run: rustup target add ${{ matrix.platform.target }}

- name: Build rust library
run: cargo build --release

- name: Build app for ${{matrix.platform.target }}
run: cargo build --release --target ${{ matrix.platform.target }}

- name: Create archive
uses: vimtor/action-zip@5f1c4aa587ea41db1110df6a99981dbe19cee310
with:
Expand Down

0 comments on commit f91bd2d

Please sign in to comment.