Skip to content

Commit

Permalink
use a major version ref for tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
yanntm committed Jun 24, 2024
1 parent cf033ad commit 0f15fe3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4.1.4
- uses: actions/checkout@v4
- name: tag version date
run: /bin/sh ./tag.sh
- name: Install packages
Expand All @@ -36,7 +36,7 @@ jobs:
- name: make doc
run: cd doc ; make ; cd .. ; mv doc/libddd.html/ website/ ;
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.6.1
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: website/ # The folder the action should deploy.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:


steps:
- uses: actions/checkout@v4.1.4
- uses: actions/checkout@v4
- name: tag version date
run: /bin/sh ./tag.sh
- name: Install packages
Expand All @@ -33,7 +33,7 @@ jobs:
- name: prepare artefact
run: rm usr/local/lib/libDDD_d* ; tar cvzf osx.tgz usr/ ; mv osx.tgz website/
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.6.1
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: osx # The branch the action should deploy to.
folder: website/ # The folder the action should deploy.
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4.1.4
- uses: actions/checkout@v4
- name: install packages
run: C:\msys64\usr\bin\bash -lc "PATH+=:/mingw64/bin ; pacman --noconfirm -S mingw-w64-x86_64-gcc mingw-w64-x86_64-autotools mingw-w64-x86_64-pkg-config p7zip base-devel libtool"
- name: configure and make
run: C:\msys64\usr\bin\bash -lc "PATH+=:/mingw64/bin ; cd /D/a/libDDD/libDDD ; autoreconf -vfi && ./configure --prefix=/D/a/libDDD/libDDD/usr/local/ --enable-nolto --enable-mingw-native && make -j 4 && make install || cat config.log"
- name: package zip
run: C:\msys64\usr\bin\bash -lc "cd /D/a/libDDD/libDDD ; rm usr/local/lib/libDDD_d* ; tar -a -c -f windows.zip usr/ ; mkdir site ; mv windows.zip site/"
- name: Upload Artifacts 🔺 # The project is then uploaded as an artifact named 'site'.
- name: Upload Artifacts # The project is then uploaded as an artifact named 'site'.
uses: actions/upload-artifact@v4
with:
name: site
Expand All @@ -30,18 +30,18 @@ jobs:

runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4.1.4
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Download Artifacts 🔻 # The built project is downloaded into the 'site' folder.
- name: Download Artifacts # The built project is downloaded into the 'site' folder.
uses: actions/download-artifact@v4
with:
name: site
- name: move to website
run: ls -lah ; mkdir -p windows ; cp windows.zip windows/ ; ls -lah windows/
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.6.1
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: Windows
folder: windows/ # The deployment folder should match the name of the artifact. Even though our project builds into the 'build' folder the artifact name of 'site' must be placed here.
Expand Down

0 comments on commit 0f15fe3

Please sign in to comment.