Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Install Pakages
run: pip install -e .[all]

- name: Test Pakages Build
- name: Test Pakages Python Build
uses: ./action/build
with:
user: ${{ github.actor }}
Expand Down
25 changes: 15 additions & 10 deletions .github/workflows/test-spack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Spack Build

# Spack is done in a container so we control os, version, etc.
on:
pull_request: []
push:
Expand All @@ -10,24 +12,27 @@ jobs:
strategy:
fail-fast: false
matrix:
repo: [["zlib", "https://github.com/pakages/zlib/"]]
package: ["zlib"]
runs-on: ubuntu-latest
name: Pakages Build
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Pakages and Spack
- name: Install pakages and Spack
run: |
git clone --depth 1 https://github.com/spack/spack /tmp/spack
export PATH=/tmp/spack/bin:${PATH}
pip install -e .[all]
pip install git+https://github.com/oras-project/oras-py.git@improve-403-error-message

- name: Build ${{ matrix.repo[0] }}
- name: List Files
run: ls .
- name: Build and Deploy Spack Package
env:
package: ${{ matrix.repo[0] }}
repo: ${{ matrix.repo[1] }}
deploy: ${{ github.event_name != 'pull_request' }}
package: ${{ matrix.package }}
user: ${{ github.actor }}
token: ${{ secrets.GITHUB_TOKEN }}
uri: ghcr.io/syspack/pakages
run: |
export PATH=/tmp/spack/bin:${PATH}
git clone ${repo}
cd ${package}
pakages build --builder spack ${package}
export PATH=/tmp/spack/bin:$PATH
/bin/bash entrypoint.sh
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ RUN curl -LO https://github.com/oras-project/oras/releases/download/v0.12.0/oras
COPY ./entrypoint.sh /entrypoint.sh
WORKDIR /opt/pakages
COPY . /opt/pakages
RUN python3 -m pip install .
RUN python3 -m pip install . && \
python3 -m pip install git+https://github.com/oras-project/oras-py.git@improve-403-error-message

ENV SPACK_ROOT=/opt/spack
ENTRYPOINT ["/bin/bash"]
2 changes: 1 addition & 1 deletion action/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ runs:
shell: bash
run: |
which pakages || (
git clone -b isolate-spack https://github.com/syspack/pakages
git clone https://github.com/syspack/pakages
cd pakages
pip install -e .
)
Expand Down
Loading