Skip to content

Commit

Permalink
ci: troubleshoot install location
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Nov 21, 2023
1 parent af621b7 commit 969c939
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ jobs:
- name: build
run: |
cargo build --release --all-features --target ${{ matrix.arch }}
cp target/${{ matrix.arch }}/release/rebar .
cp target/${{ matrix.arch }}/release/rebar ~/.local/bin
- name: compress with upx
uses: crazy-max/ghaction-upx@v3
with:
version: v4.1.0
files: |
rebar
~/.local/bin/rebar
args: --best --lzma

- name: upload binary
uses: actions/upload-artifact@v3
with:
name: rebar-${{ matrix.arch }}
path: rebar
path: ~/.local/bin/rebar
19 changes: 14 additions & 5 deletions .github/workflows/latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
schedule:
- cron: '0 0 * * *'

env:
tag: "latest"

jobs:

build:
Expand Down Expand Up @@ -43,21 +46,27 @@ jobs:
- name: build
run: |
cargo build --release --all-features --target ${{ matrix.arch }}
cp target/${{ matrix.arch }}/release/rebar .
cp target/${{ matrix.arch }}/release/rebar ~/.local/bin
- name: compress with upx
uses: crazy-max/ghaction-upx@v3
with:
version: v4.1.0
files: |
rebar
~/.local/bin/rebar
args: --best --lzma

- name: dataset download
run: |
rebar dataset download --name sars-cov-2 --tag $tag --output-dir dataset/sars-cov-2/$tag
- name: validate
run: |
./rebar dataset download --name sars-cov-2 --tag latest --output-dir dataset/sars-cov-2/latest
./rebar run --dataset-dir dataset/sars-cov-2/latest --output-dir validate --populations "*" --threads 2
./rebar plot --dataset-dir dataset/sars-cov-2/latest --output-dir validate --plot-dir validate/plots
rebar run --dataset-dir dataset/sars-cov-2/$tag --output-dir validate --populations "*" --threads 2
- name: plot
run: |
rebar plot --dataset-dir dataset/sars-cov-2/$tag --output-dir validate --plot-dir validate/plots
- name: upload
uses: actions/upload-artifact@v3
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,21 @@ jobs:
- name: build
run: |
cargo build --release --all-features --target ${{ matrix.arch }}
cp target/${{ matrix.arch }}/release/rebar ~/.local/bin
cp target/${{ matrix.arch }}/release/rebar .
- name: compress with upx
uses: crazy-max/ghaction-upx@v3
with:
version: v4.1.0
files: |
~/.local/bin/rebar
rebar
args: --best --lzma

- name: install
run:
mv rebar /home/runner/.local/bin/rebar
rebar --help

- name: dataset download
run: |
rebar dataset download --name sars-cov-2 --tag $tag --output-dir dataset/sars-cov-2/$tag
Expand Down

0 comments on commit 969c939

Please sign in to comment.