diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index eaf5051..b4d040b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 diff --git a/.github/workflows/latest.yaml b/.github/workflows/latest.yaml index b31bf69..ba701ed 100644 --- a/.github/workflows/latest.yaml +++ b/.github/workflows/latest.yaml @@ -13,6 +13,9 @@ on: schedule: - cron: '0 0 * * *' +env: + tag: "latest" + jobs: build: @@ -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 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 579a712..b9d1f88 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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