Skip to content

Commit

Permalink
Add a rust component to fetch unique files
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Aug 23, 2023
1 parent 1590aa9 commit 185a649
Show file tree
Hide file tree
Showing 6 changed files with 3,032 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/unique_python_files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
workflow_dispatch:
# schedule:
# - cron: "0 0 * * *"

name: Build unique python files
concurrency: build

jobs:
build_and_test:
name: Compile toolchain
runs-on: ubuntu-latest
if: github.repository == 'pypi-data/internal-toolchain'
env:
RUST_BACKTRACE: "1"
steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- uses: Swatinem/rust-cache@v2
with:
prefix-key: unique-python-files-

- name: Build optimized release
uses: actions-rs/cargo@v1
with:
command: build
args: --profile=optimized
env:
RUSTFLAGS: '-C target-cpu=native'
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,8 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/



# Added by cargo

/target
Loading

0 comments on commit 185a649

Please sign in to comment.